diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2019-01-08 00:27:41 -0500 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2019-01-08 00:27:41 -0500 |
| commit | f048ff6aa6fcaf756a8262fbb0b62cc84c88ba1c (patch) | |
| tree | ca685c615a6fcf66903f03e1acdd55ae60172e5f | |
| parent | c71754df895bd9319169c6f607a7525b61bcebdf (diff) | |
| download | eibhear-f048ff6aa6fcaf756a8262fbb0b62cc84c88ba1c.tar.gz eibhear-f048ff6aa6fcaf756a8262fbb0b62cc84c88ba1c.tar.zst eibhear-f048ff6aa6fcaf756a8262fbb0b62cc84c88ba1c.zip | |
posix sh extract fix
| -rwxr-xr-x | .scripts/tools/extract | 2 |
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 |
