aboutsummaryrefslogtreecommitdiff
path: root/scripts/deploy
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/deploy')
-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