Skip to content

Commit

Permalink
remove warning for runscript deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
williamh committed Nov 15, 2023
1 parent 65b13eb commit 59a1755
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/openrc-run/openrc-run.c
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,6 @@ service_plugable(void)
int main(int argc, char **argv)
{
bool doneone = false;
bool runscript = false;
int retval, opt, depoptions = RC_DEP_TRACE;
RC_STRING *svc;
char *path = NULL;
Expand All @@ -1115,8 +1114,6 @@ int main(int argc, char **argv)
}

applet = basename_c(argv[0]);
if (strcmp(applet, "runscript") == 0)
runscript = true;

if (stat(argv[1], &stbuf) != 0) {
fprintf(stderr, "openrc-run `%s': %s\n",
Expand Down Expand Up @@ -1289,9 +1286,6 @@ int main(int argc, char **argv)
applet_list = rc_stringlist_new();
rc_stringlist_add(applet_list, applet);

if (runscript)
ewarn("%s uses runscript, please convert to openrc-run.", service);

/* Now run each option */
retval = EXIT_SUCCESS;
while (optind < argc) {
Expand Down

0 comments on commit 59a1755

Please sign in to comment.