mirror of
https://codeberg.org/landley/toybox.git
synced 2026-01-26 06:07:55 +00:00
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:
parent
e95778682a
commit
bfbdd4a2db
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
if [ -z "$(which bash)" ]
|
||||
then
|
||||
echo "$SHOWSKIP: no bash alias"
|
||||
continue 2>/dev/null
|
||||
return 2>/dev/null
|
||||
exit
|
||||
fi
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user