Replace 'return' with 'exit'
This commit is contained in:
@@ -6,7 +6,7 @@ read answer
|
|||||||
if [ "$answer" == "y" ]; then
|
if [ "$answer" == "y" ]; then
|
||||||
echo "~> OK. Be patient now, that could take some time..."
|
echo "~> OK. Be patient now, that could take some time..."
|
||||||
dd if=/dev/zero of=$blockdevice status=progress
|
dd if=/dev/zero of=$blockdevice status=progress
|
||||||
return $?
|
exit $?
|
||||||
else
|
else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user