Use return rather than continue to make bash 4.4 happy.

Otherwise we get this error:

  continue: only meaningful in a 'for', 'while', or 'until' loop
This commit is contained in:
Elliott Hughes 2019-01-07 16:41:53 -08:00 committed by Rob Landley
parent e95778682a
commit bfbdd4a2db
10 changed files with 10 additions and 10 deletions

View File

@ -7,7 +7,7 @@
if [ "$(id -u)" -ne 0 ]
then
echo "$SHOWSKIP: chattr (not root)"
continue 2>/dev/null
return 2>/dev/null
exit
fi

View File

@ -5,7 +5,7 @@
if [ "$(id -u)" -ne 0 ]
then
echo "$SHOWSKIP: chgrp (not root)"
continue 2>/dev/null
return 2>/dev/null
exit
fi

View File

@ -5,7 +5,7 @@
if [ "$(id -u)" -ne 0 ]
then
echo "$SHOWSKIP: chown (not root)"
continue 2>/dev/null
return 2>/dev/null
exit
fi

View File

@ -7,7 +7,7 @@
if [ "$(id -u)" -ne 0 ]
then
echo "$SHOWSKIP: groupadd (not root)"
continue 2>/dev/null
return 2>/dev/null
exit
fi

View File

@ -8,7 +8,7 @@
if [ "$(id -u)" -ne 0 ]
then
echo "$SHOWSKIP: groupdel (not root)"
continue 2>/dev/null
return 2>/dev/null
exit
fi

View File

@ -10,7 +10,7 @@ testing "get" "hostname" "$HOST\n" "" ""
if [ "$(id -u)" -ne 0 ]
then
echo "$SHOWSKIP: groupdel (not root)"
continue 2>/dev/null
return 2>/dev/null
exit
fi

View File

@ -24,7 +24,7 @@
if [ "$(id -u)" -ne 0 ]
then
echo "$SHOWSKIP: ifconfig (not root)"
continue 2>/dev/null
return 2>/dev/null
exit
fi

View File

@ -5,7 +5,7 @@
if [ "$(id -u)" -ne 0 ]
then
echo "$SHOWSKIP: losetup (not root)"
continue 2>/dev/null
return 2>/dev/null
exit
fi

View File

@ -7,7 +7,7 @@
if [ -z "$(which bash)" ]
then
echo "$SHOWSKIP: no bash alias"
continue 2>/dev/null
return 2>/dev/null
exit
fi

View File

@ -8,7 +8,7 @@
if [ "$(id -u)" -ne 0 ]
then
echo "$SHOWSKIP: useradd (not root)"
continue 2>/dev/null
return 2>/dev/null
exit
fi