From 3303ea118e3ee158e02dc94fcb6fcc956233135e Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 7 Mar 2021 23:44:10 -0300 Subject: scripts/deploy: do exact matches of hostname --- scripts/deploy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/deploy') 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 -- cgit v1.2.3