summaryrefslogtreecommitdiff
path: root/cmd-rename.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-rename.sh')
-rwxr-xr-xcmd-rename.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd-rename.sh b/cmd-rename.sh
index ada33fb..ad3285b 100755
--- a/cmd-rename.sh
+++ b/cmd-rename.sh
@@ -4,7 +4,9 @@ test -d "$d" || exit
while read old new
do
rm -f "$d/$old"
+ if [ -x "$d/$new" ]; then
ln -s "$new" "$d/$old"
+ fi
done <<\EOF
git-add-script git-add
git-archimport-script git-archimport