aboutsummaryrefslogtreecommitdiffstats
path: root/src/argparser.bash
diff options
context:
space:
mode:
Diffstat (limited to 'src/argparser.bash')
-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
}