summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-01-08 00:27:41 -0500
committerLuke Smith <luke@lukesmith.xyz>2019-01-08 00:27:41 -0500
commitf048ff6aa6fcaf756a8262fbb0b62cc84c88ba1c (patch)
treeca685c615a6fcf66903f03e1acdd55ae60172e5f
parentc71754df895bd9319169c6f607a7525b61bcebdf (diff)
downloadeibhear-f048ff6aa6fcaf756a8262fbb0b62cc84c88ba1c.tar.gz
eibhear-f048ff6aa6fcaf756a8262fbb0b62cc84c88ba1c.tar.zst
eibhear-f048ff6aa6fcaf756a8262fbb0b62cc84c88ba1c.zip
posix sh extract fix
-rwxr-xr-x.scripts/tools/extract2
1 files changed, 1 insertions, 1 deletions
diff --git a/.scripts/tools/extract b/.scripts/tools/extract
index c214583..a63ab10 100755
--- a/.scripts/tools/extract
+++ b/.scripts/tools/extract
@@ -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