Permalink
Browse files

Merge pull request #1 from xtao/master

Change "return" to "exit"
  • Loading branch information...
2 parents 53432d3 + 425eebd commit 56baa0ef5b10ed2b5829f9a066693529886dc2bf @troydm committed Dec 30, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 ovpnauth.sh
View
@@ -14,7 +14,7 @@ then
echo ""
echo "help - prints help"
echo "md5 password - to compute password md5 checksum"
- return 1
+ exit 1
fi
md5(){
@@ -27,7 +27,7 @@ md5(){
if [ "$1" = "md5" ]
then
echo `md5 $2`
- return 1
+ exit 1
fi
log(){
@@ -52,10 +52,10 @@ if [ "$password" = "$userpass" ]
then
log "OpenVPN authentication successfull: $username"
logenv
- return 0
+ exit 0
fi
log "OpenVPN authentication failed"
log `cat $1`
logenv
-return 1
+exit 1

0 comments on commit 56baa0e

Please sign in to comment.