liberize / ssc

Convert shell script to binary

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error basename

antonellocaroli opened this issue · comments

ho uno script shell dove all'interno mi serve recuperare il nome dello script, esempio:

#!/bin/bash
script_name=$(basename "$0")
echo "$script_name"
./test.sh
test.sh

ssc -u test.sh test
./test
3

once the script has been compiled with ssc, it seems that it no longer retrieves basename... how can this be remedied?

Thanks

Have you tried -0 flag?
Read README.md plz.

perfect, it works.

Thank you