fix: Remove cat (#561)

This commit is contained in:
Kroese
2024-01-14 00:00:59 +01:00
committed by GitHub
parent fcd7b8a825
commit 6422aec780
6 changed files with 10 additions and 10 deletions

View File

@@ -9,7 +9,7 @@ address="/run/shm/qemu.ip"
[ ! -f "$file" ] && echo "DSM has not enabled networking yet.." && exit 1
location=$(cat "$file")
location=$(<"$file")
if ! curl -m 20 -ILfSs "http://$location/" > /dev/null; then
@@ -19,7 +19,7 @@ if ! curl -m 20 -ILfSs "http://$location/" > /dev/null; then
echo "Failed to reach DSM at port $port"
else
echo "Failed to reach DSM at http://$location"
ip="$(cat "$address")"
ip=$(<"$address")
fi
echo "You might need to whitelist IP $ip in the DSM firewall." && exit 1