mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
some args are optional, do not return errors
This commit is contained in:
parent
af22962bbe
commit
eb80d3c68a
@ -75,10 +75,6 @@ doGetOpt()
|
|||||||
echo "Invalid option: -$OPTARG" >&2
|
echo "Invalid option: -$OPTARG" >&2
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
:)
|
|
||||||
echo "Option -$OPTARG requires an argument." >&2
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
@ -253,9 +249,10 @@ case $cmd in
|
|||||||
echo "-I <IP check URL> A URL which returns the IP of the client who is requesting"
|
echo "-I <IP check URL> A URL which returns the IP of the client who is requesting"
|
||||||
echo ""
|
echo ""
|
||||||
echo "update do a one time update"
|
echo "update do a one time update"
|
||||||
echo "clean delete configuration"
|
echo "clean delete configuration"
|
||||||
echo "success store update success"
|
echo "success store update success"
|
||||||
echo "failed store update failure"
|
echo "failed store update failure"
|
||||||
|
echo "get-nat return the detected nat type"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user