From f0589d64024d5e2554e9f4f447506fed4f97d55d Mon Sep 17 00:00:00 2001 From: oufme Date: Wed, 5 Jun 2024 09:02:53 -0700 Subject: [PATCH] Remove check path when unpack --- packelf.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/packelf.sh b/packelf.sh index 50f519b..912d1cd 100755 --- a/packelf.sh +++ b/packelf.sh @@ -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."