Skip to content
Snippets Groups Projects
Commit 821a0996 authored by Drew DeVault's avatar Drew DeVault
Browse files

Swap bash for sh

parent 27b4aa62
No related branches found
No related tags found
No related merge requests found
...@@ -456,7 +456,7 @@ void feh_wm_set_bg(char *fil, Imlib_Image im, int centered, int scaled, ...@@ -456,7 +456,7 @@ void feh_wm_set_bg(char *fil, Imlib_Image im, int centered, int scaled,
if ((fp = fopen(path, "w")) == NULL) { if ((fp = fopen(path, "w")) == NULL) {
weprintf("Can't write to %s", path); weprintf("Can't write to %s", path);
} else { } else {
fprintf(fp, "#!/bin/bash\n%s\n", fehbg); fprintf(fp, "#!/bin/sh\n%s\n", fehbg);
fclose(fp); fclose(fp);
stat(path, &s); stat(path, &s);
if (chmod(path, s.st_mode | S_IXUSR | S_IXGRP) != 0) { if (chmod(path, s.st_mode | S_IXUSR | S_IXGRP) != 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment