posix sh extract fix
This commit is contained in:
parent
c71754df89
commit
f048ff6aa6
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue