cp-po: Test for qualified file existence when parsing -L option
authorPeter Eisentraut <peter_e@gmx.net>
Sun, 3 Mar 2013 14:01:52 +0000 (09:01 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Sun, 3 Mar 2013 14:01:52 +0000 (09:01 -0500)
cp-po

diff --git a/cp-po b/cp-po
index e6abb685cd332bf568e115b4cec0f910900bfaa3..6f97dc4a1dd8bb59a768a2b70e583a64f3eb4b4a 100755 (executable)
--- a/cp-po
+++ b/cp-po
@@ -53,7 +53,7 @@ while true; do
                -f) force=true; shift;;
                -g) git_mode=true; update_target_tree=true; shift;;
                -k) adjustcvskeywords=false; shift;;
-               -L) qualfile=$2; shift; shift;;
+               -L) qualfile=$2; test -e "$qualfile"; shift; shift;;
                -n) run=false; shift;;
                -u) update_target_tree=true; shift;;
                --) shift; break;;