Merge pull request #13 from basvandewiel/12-bugfix-equality-operators

Fix unintend always-true conditions.
This commit is contained in:
Bas v.d. Wiel 2023-03-09 15:57:56 +01:00 committed by GitHub
commit cb219b35e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ if [ "${WAIT_FOR_SERVER}" == "yes" ]; then
echo
fi
if [ "${WOL}" = "yes" ]; then
if [ "${WOL}" == "yes" ]; then
for REP in {1..16}; do
MAC+=$(echo ${SERVER_MAC})
done
@ -104,7 +104,7 @@ if [ "${SERVER}" == "" ]; then
exit 1
fi
if ! [ "$(zgrep "CONFIG_NFS_FS=" /proc/config.gz)" = "CONFIG_NFS_FS=y" ]; then
if ! [ "$(zgrep "CONFIG_NFS_FS=" /proc/config.gz)" == "CONFIG_NFS_FS=y" ]; then
echo "The current Kernel doesn't support NFS."
echo "Please update your MiSTer Linux system."
exit 1