Summary Files Commits Branches @commit @diff @stats
path: root / scripts / archive
diff options
context:
space:
mode:
1 files changed, 1 insertions, 1 deletions
-rwxr-xr-xscripts/archive2
diff --git a/scripts/archive b/scripts/archive
index ba50216..cc25c6e 100755
--- a/scripts/archive
+++ b/scripts/archive
@@ -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