Replace 'return' with 'exit'

This commit is contained in:
maride 2017-07-31 00:05:02 +02:00
parent dd96391dc6
commit f0bf0e1c4e

View File

@ -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