diff options
author | EuAndreh <eu@euandre.org> | 2021-03-07 23:44:10 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-03-07 23:44:10 -0300 |
commit | 3303ea118e3ee158e02dc94fcb6fcc956233135e (patch) | |
tree | 139c4ed86d09b6d226b58f70082620a0dea357aa | |
parent | scripts/deploy: Switch on OS type only once (diff) | |
download | toph-3303ea118e3ee158e02dc94fcb6fcc956233135e.tar.gz toph-3303ea118e3ee158e02dc94fcb6fcc956233135e.tar.xz |
scripts/deploy: do exact matches of hostname
-rwxr-xr-x | scripts/deploy | 2 |
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 |