Summary Files Commits Branches @commit @diff @stats
path: root / scripts / archive
diff options
context:
space:
mode:
1 files changed, 2 insertions, 2 deletions
-rwxr-xr-xscripts/archive4
diff --git a/scripts/archive b/scripts/archive
index 62fc24b..8d2f2d3 100755
--- a/scripts/archive
+++ b/scripts/archive
@@ -18,8 +18,8 @@ fi
__rec_ro() {
while read -r f
do
- chwrite -w "$f"
- [ -d "$f" ] && __rec_ro "$f"
+ chwrite -w "$1/$f"
+ [ -d "$1/$f" ] && __rec_ro "$1/$f"
done <<FILES
$(ls -A1 "$1")
FILES