mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
posix sh extract fix
This commit is contained in:
parent
bae314a11e
commit
a7a8f94a59
@ -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