Summary Files Commits Branches @commit @diff @stats
path: root / scripts / unarchive
diff options
context:
space:
mode:
Commit6e29a2d08ff4085fb1a3619e6737b56cab25422a (patch)
Author
 Syndamia <kamen@syndamia.com>
2026-11-08 19:30:07 +0200
Committer
 Syndamia <kamen@syndamia.com>
2026-11-08 19:30:07 +0200
Files3a40a2b761193f8775a2b36911f1728f89a562d3 /scripts/unarchive
cli-6e29a2d08ff4085fb1a3619e6737b56cab25422a.tar
cli-6e29a2d08ff4085fb1a3619e6737b56cab25422a.tar.gz
cli-6e29a2d08ff4085fb1a3619e6737b56cab25422a.zip
Parent6f75a91408459b3093eedb23f4db130595da565f (diff)
fix(scripts): Exclude ed's error questionmarks
When substitution fails it outputs a questionmark on a new line. The output could have up to two lines with questionmarks before the final print. There is no way to turn them off.
1 files changed, 1 insertions, 1 deletions
-rwxr-xr-xscripts/unarchive2
diff --git a/scripts/unarchive b/scripts/unarchive
index 08688da..25fc440 100755
--- a/scripts/unarchive
+++ b/scripts/unarchive
@@ -7,7 +7,7 @@ then
set "$REPLY"
fi
-set "$(echo -e "a\n$1\n.\n1s|\.\+/||g\n1s|/\+|/|g\n1p\nQ" | ed -s)"
+set "$(echo -e "a\n$1\n.\n1s|\.\+/||g\n1s|/\+|/|g\n1p\nQ" | ed -sqr | tail -1)"
if [ ! -d "$1" ]
then