Unify shebang on debashify

This commit is contained in:
zawwz 2021-01-08 11:45:28 +01:00
parent f99f40b3e8
commit 51b2648c94

View file

@ -208,10 +208,7 @@ bool r_debashify(_obj* o, bool* need_random_func)
void debashify(shmain* sh) void debashify(shmain* sh)
{ {
bool need_random_func=false; bool need_random_func=false;
if(sh->shebang == "") sh->shebang = "#!/bin/sh";
sh->shebang = "#!/bin/bash";
else
sh->shebang = dirname(sh->shebang)+"/sh";
recurse(r_debashify, sh, &need_random_func); recurse(r_debashify, sh, &need_random_func);
if(need_random_func) if(need_random_func)
sh->lst->insert(0, new condlist(create_random_func())); sh->lst->insert(0, new condlist(create_random_func()));