mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
Remove expectation for an argument to be passed
Added in a failing return value to flush out tests/scripts that may be calling this script multiple times with various arguments
This commit is contained in:
@@ -858,24 +858,11 @@ run_renewcerts(){
|
|||||||
#start in root.
|
#start in root.
|
||||||
cd ../ || exit 1
|
cd ../ || exit 1
|
||||||
|
|
||||||
#if there was an argument given, check it for validity or print out error
|
|
||||||
if [ ! -z "$1" ]; then
|
if [ ! -z "$1" ]; then
|
||||||
#valid argument print out other valid arguments
|
echo "No arguments expected"
|
||||||
if [ "$1" == "-h" ] || [ "$1" == "-help" ]; then
|
exit 1
|
||||||
echo ""
|
|
||||||
echo "\"no argument\" will attempt to update all certificates"
|
|
||||||
echo "-h or -help display this menu"
|
|
||||||
echo ""
|
|
||||||
echo ""
|
|
||||||
#else the argument was invalid, tell user to use -h or -help
|
|
||||||
else
|
|
||||||
echo ""
|
|
||||||
echo "That is not a valid option."
|
|
||||||
echo ""
|
|
||||||
echo "use -h or -help for a list of available options."
|
|
||||||
echo ""
|
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
echo "Saving the configure state"
|
echo "Saving the configure state"
|
||||||
echo ""
|
echo ""
|
||||||
cp config.status tmp.status || exit 1
|
cp config.status tmp.status || exit 1
|
||||||
@@ -894,6 +881,4 @@ else
|
|||||||
restore_config
|
restore_config
|
||||||
check_result $? "restoring old configuration"
|
check_result $? "restoring old configuration"
|
||||||
|
|
||||||
fi #END already defined
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Reference in New Issue
Block a user