Skip to content

Commit 61a3eaa

Browse files
bors[bot]Mic92
andauthored
Merge #30
30: fix command check when gathering facts r=Mic92 a=Mic92 Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
2 parents 8288f02 + 351a6ba commit 61a3eaa

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 @@ until facts=$(
163163
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)