mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-01-30 09:48:11 +01:00
posix sh extract fix
This commit is contained in:
parent
c71754df89
commit
f048ff6aa6
@ -11,7 +11,7 @@ esac done
|
|||||||
|
|
||||||
if [ -z "$extracthere" ]; then
|
if [ -z "$extracthere" ]; then
|
||||||
archive="$(readlink -f "$*")" &&
|
archive="$(readlink -f "$*")" &&
|
||||||
directory=${archive%.*} &&
|
directory="$(echo "$archive" | sed 's/\.[^\/.]*$//')" &&
|
||||||
mkdir -p "$directory" &&
|
mkdir -p "$directory" &&
|
||||||
cd "$directory" || exit
|
cd "$directory" || exit
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user