aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-03-07 23:44:10 -0300
committerEuAndreh <eu@euandre.org>2021-03-07 23:44:10 -0300
commit3303ea118e3ee158e02dc94fcb6fcc956233135e (patch)
tree139c4ed86d09b6d226b58f70082620a0dea357aa
parentscripts/deploy: Switch on OS type only once (diff)
downloadtoph-3303ea118e3ee158e02dc94fcb6fcc956233135e.tar.gz
toph-3303ea118e3ee158e02dc94fcb6fcc956233135e.tar.xz
scripts/deploy: do exact matches of hostname
-rwxr-xr-xscripts/deploy2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/deploy b/scripts/deploy
index 5c26030..66ea1f3 100755
--- a/scripts/deploy
+++ b/scripts/deploy
@@ -7,7 +7,7 @@ if [ -z "$NAME" ]; then
exit 2
fi
-FILE="$(find . -name hostname.txt -exec grep -l "$NAME" {} \;)"
+FILE="$(find . -name hostname.txt -exec grep -l "^$NAME$" {} \;)"
if [ -z "$FILE" ]; then
printf 'Unknown hostname "%s"\n' "$NAME" >&2
exit 2