projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new fortune.
[feisty_meow.git]
/
scripts
/
rev_control
/
version_control.sh
diff --git
a/scripts/rev_control/version_control.sh
b/scripts/rev_control/version_control.sh
index e3e0c4b17c1132835f36787d4a4e0c7613e78857..e004964ae095b3030dd920a61945328e26cf3fd0 100644
(file)
--- a/
scripts/rev_control/version_control.sh
+++ b/
scripts/rev_control/version_control.sh
@@
-275,16
+275,17
@@
function perform_action_on_file()
local tempfile="$1"; shift
local action="$1"; shift
local tempfile="$1"; shift
local action="$1"; shift
- dirs=($(cat $tempfile))
+
#
dirs=($(cat $tempfile))
- for dirname in ${dirs[@]}; do
+ while read -u 3 dirname; do
+# for dirname in "${dirs[@]}"; do
if [ -z "$dirname" ]; then continue; fi
if [ -z "$dirname" ]; then continue; fi
- pushd
$dirname
&>/dev/null
+ pushd
"$dirname"
&>/dev/null
echo "[$(pwd)]"
$action .
echo "======="
popd &>/dev/null
echo "[$(pwd)]"
$action .
echo "======="
popd &>/dev/null
- done
+ done
3<"$tempfile"
rm $tempfile
}
rm $tempfile
}