Skip to content

Commit ca4fa9f

Browse files
committed
more readable
1 parent fcf99f6 commit ca4fa9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rootfs/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ if [ ! -s /netbox-scanner/networks.txt ]; then
88
exit 1
99
fi >&2
1010

11-
echo '4de64ad74607f128bdb5873497a9d85d27e52c0a96dc994016488d050a55dd6c /root/.netbox-scanner.conf' | sha256sum -c &> /dev/null && {
11+
if echo '4de64ad74607f128bdb5873497a9d85d27e52c0a96dc994016488d050a55dd6c /root/.netbox-scanner.conf' | sha256sum --check --status; then
1212
echo "Error: You have to configure at least ADDRESS and TOKEN in 'netbox-scanner.conf'."
1313
echo
1414
exit 1
15-
} >&2
15+
fi >&2
1616

1717
cd /netbox-scanner
1818

0 commit comments

Comments
 (0)