30: fix command check when gathering facts r=Mic92 a=Mic92



Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
This commit is contained in:
bors[bot] 2023-01-12 08:28:59 +00:00 committed by GitHub
commit 61a3eaa8db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -163,7 +163,7 @@ until facts=$(
ssh_ -o ConnectTimeout=10 -- <<SSH
set -efu ${enable_debug}
has(){
command -v tar >/dev/null && echo "y" || echo "n"
command -v "\$1" >/dev/null && echo "y" || echo "n"
}
cat <<FACTS
is_os=\$(uname)