aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-06-19 16:11:31 +0200
committerMattias Andrée <maandree@operamail.com>2013-06-19 16:11:31 +0200
commitcd97fdea4b2836452e745681d76feca30c2b7989 (patch)
tree15591b0be3dc5119a5bb76815d2a13d8cc4259b5
parentderp (diff)
downloadargparser-cd97fdea4b2836452e745681d76feca30c2b7989.tar.gz
argparser-cd97fdea4b2836452e745681d76feca30c2b7989.tar.bz2
argparser-cd97fdea4b2836452e745681d76feca30c2b7989.tar.xz
m bug fix
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--src/argparser.bash4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/argparser.bash b/src/argparser.bash
index c4f306b..871e8ca 100644
--- a/src/argparser.bash
+++ b/src/argparser.bash
@@ -163,7 +163,9 @@ function args_support_alternatives
{
local alt
for alt in "$(ls "${args_optmap}")"; do
- ln -s "${args_opts}/$(head -n 1 < "${args_optmap}/${alt}")" "${args_opts}/${alt}"
+ if [ ! -e "${args_opts}/${alt}" ]; then
+ ln -s "${args_opts}/$(head -n 1 < "${args_optmap}/${alt}")" "${args_opts}/${alt}"
+ fi
done
}