From cd97fdea4b2836452e745681d76feca30c2b7989 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 19 Jun 2013 16:11:31 +0200 Subject: m bug fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/argparser.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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 } -- cgit v1.2.3-70-g09d2