Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
3 files changed, 4 insertions, 2 deletions
-rw-r--r--bins.list2
-rwxr-xr-xscripts/archive2
-rwxr-xr-xscripts/unarchive2
diff --git a/bins.list b/bins.list
index 673b33d..0cb5676 100644
--- a/bins.list
+++ b/bins.list
@@ -6,7 +6,9 @@
/bin/git-shell
/bin/git-upload-archive
/bin/git-upload-pack
+/bin/head
/bin/ln
/bin/ls
/bin/mkdir
/bin/mv
+/bin/tail
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
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