posix sh extract fix

This commit is contained in:
Luke Smith 2019-01-08 00:27:41 -05:00
parent c71754df89
commit f048ff6aa6

View file

@ -11,7 +11,7 @@ esac done
if [ -z "$extracthere" ]; then
archive="$(readlink -f "$*")" &&
directory=${archive%.*} &&
directory="$(echo "$archive" | sed 's/\.[^\/.]*$//')" &&
mkdir -p "$directory" &&
cd "$directory" || exit
else