ipsec: Remove duplicate check for internal commands

This commit is contained in:
Tobias Brunner
2014-10-08 18:44:23 +02:00
parent 249aa67f87
commit 4279bfdb40
-4
View File
@@ -338,14 +338,10 @@ shift
path="$IPSEC_DIR/$cmd" path="$IPSEC_DIR/$cmd"
if [ ! -x "$path" ]
then
path="$IPSEC_DIR/$cmd"
if [ ! -x "$path" ] if [ ! -x "$path" ]
then then
echo "$0: unknown IPsec command \`$cmd' (\`$IPSEC_SCRIPT --help' for list)" >&2 echo "$0: unknown IPsec command \`$cmd' (\`$IPSEC_SCRIPT --help' for list)" >&2
exit 2 exit 2
fi fi
fi
exec $path "$@" exec $path "$@"