Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Linux/tree-common/functions
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ has_opt() {
get_metadata() {
for idx in $(seq -w 0 $(scw-metadata --cached TAGS)); do
tag=$(scw-metadata --cached TAGS_$idx)
if [ $(echo "$tag" | grep "^$1=") ]; then
echo $tag | sed 's/^[^=]*=//' | resolve_hostnames
if [ "$(echo "$tag" | grep "^$1=")" ]; then
echo "$tag" | sed 's/^[^=]*=//' | resolve_hostnames
return
fi
done
Expand Down