Skip to content

Commit 351a6ba

Browse files
committed
fix command check when gathering facts
1 parent b4a725a commit 351a6ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nixos-remote.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ fi
163163
until facts=$(ssh_ -o ConnectTimeout=10 -- <<SSH
164164
set -efu ${enable_debug}
165165
has(){
166-
command -v tar >/dev/null && echo "y" || echo "n"
166+
command -v "\$1" >/dev/null && echo "y" || echo "n"
167167
}
168168
cat <<FACTS
169169
is_os=\$(uname)

0 commit comments

Comments
 (0)