mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-09-11 16:45:28 +03:00
Merge #30
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:
commit
61a3eaa8db
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user