nfs_server: Use more strict shell options

This commit is contained in:
Timo Makinen 2022-10-29 17:09:18 +00:00
parent fea23b3a63
commit 71a7a0ab68
2 changed files with 6 additions and 6 deletions

View file

@ -1,6 +1,6 @@
#!/bin/bash
#!/bin/sh
set -e
set -eu
LOCKFILE="/run/$(basename "$0").pid"
STATEFILE="/run/$(basename "$0").state"
@ -50,7 +50,7 @@ _state="$(
'
)"
if [ -f "$STATEFILE" ]; then
if [ "$_state" == "$(cat "$STATEFILE")" ]; then
if [ "$_state" = "$(cat "$STATEFILE")" ]; then
exit 0
fi
fi

View file

@ -1,6 +1,6 @@
#!/bin/bash
#!/bin/sh
set -e
set -eu
LOCKFILE="/run/$(basename "$0").pid"
STATEFILE="/run/$(basename "$0").state"
@ -50,7 +50,7 @@ _state="$(
'
)"
if [ -f "$STATEFILE" ]; then
if [ "$_state" == "$(cat "$STATEFILE")" ]; then
if [ "$_state" = "$(cat "$STATEFILE")" ]; then
exit 0
fi
fi