grub/tests/grub_script_test.in
Vladimir 'phcoder' Serbinenko daf01d61ff Fix test -a and -o precedence.
Reported by: adrian15.
2013-05-04 13:38:59 +02:00

15 lines
No EOL
316 B
Text

#! @builddir@/grub-shell-tester
for device in 'hd0' 'fd0'; do
# But search them if their search has been inforced
set fd0search="no"
if [ "$device" != "fd0" -a "$device" != "cd" \
-o \
"$device" = "fd0" -a "$fd0search" = "yes" ]\
; then
echo "Yes"
else
echo "No"
fi
done