ipsec: Remove duplicate check for internal commands
authorTobias Brunner <tobias@strongswan.org>
Tue, 30 Sep 2014 12:01:25 +0000 (14:01 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 8 Oct 2014 16:44:23 +0000 (18:44 +0200)
src/ipsec/_ipsec.in

index fa08f93..74035ad 100644 (file)
@@ -340,12 +340,8 @@ path="$IPSEC_DIR/$cmd"
 
 if [ ! -x "$path" ]
 then
-    path="$IPSEC_DIR/$cmd"
-    if [ ! -x "$path" ]
-    then
        echo "$0: unknown IPsec command \`$cmd' (\`$IPSEC_SCRIPT --help' for list)" >&2
        exit 2
-    fi
 fi
 
 exec $path "$@"