diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-06-19 16:11:31 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-06-19 16:11:31 +0200 |
commit | cd97fdea4b2836452e745681d76feca30c2b7989 (patch) | |
tree | 15591b0be3dc5119a5bb76815d2a13d8cc4259b5 | |
parent | derp (diff) | |
download | argparser-cd97fdea4b2836452e745681d76feca30c2b7989.tar.gz argparser-cd97fdea4b2836452e745681d76feca30c2b7989.tar.bz2 argparser-cd97fdea4b2836452e745681d76feca30c2b7989.tar.xz |
m bug fix
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/argparser.bash | 4 |
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 } |