Remove check path when unpack

This commit is contained in:
oufme 2024-06-05 09:02:53 -07:00
parent f06020ac47
commit f0589d6402

View File

@ -125,6 +125,7 @@ unpack() {
sed '/^#__END__$/,$d' "$0" > "$unpack_dir/$program"
sed -i -E 's/^run_mode=\w*$/run_mode=loader/' "$unpack_dir/$program"
chmod +x "$unpack_dir/$program"
rm -f "$check_path"
echo "'$program' was unpacked to '$unpack_dir'."
echo "$unpack_dir" | grep -q / || unpack_dir="./$unpack_dir"
echo "You can run '$unpack_dir/$program ARGS...' to execute the command."