Drop useless parens in conditionals

cleanup-cruft
Fabio Erculiani 12 years ago
parent 421b210c67
commit a408d4a513

@ -420,7 +420,7 @@ prompt_user(){
eval local oldvalue='$'${1}
[ \( $# != 2 \) -a \( $# != 3 \) ] && \
[ $# != 2 -a $# != 3 ] && \
bad_msg "Bad invocation of function prompt_user, please file a bug \
report with this message" && exit 1
[ -n "${3}" ] && local explnt=" or : ${3}" || local explnt="."

@ -270,13 +270,13 @@ do
esac
done
if [ \( "${CDROOT}" = '0' \) ]
if [ "${CDROOT}" = '0' ]
then
if [ -z "${REAL_ROOT}" -a \( "${FAKE_ROOT}" != "/dev/ram0" \) ]
if [ -z "${REAL_ROOT}" -a "${FAKE_ROOT}" != "/dev/ram0" ]
then
REAL_ROOT="${FAKE_ROOT}"
fi
if [ -z "${REAL_INIT}" -a \( "${FAKE_INIT}" != "/linuxrc" \) ]
if [ -z "${REAL_INIT}" -a "${FAKE_INIT}" != "/linuxrc" ]
then
REAL_INIT="${FAKE_INIT}"
fi

Loading…
Cancel
Save