localhost is a scary hostname

This commit is contained in:
Osman Faruk Bayram 2025-02-18 22:44:16 +03:00
parent a4badfb206
commit 27a8173248

View file

@ -13,7 +13,7 @@ build *args: check-git
[linux] [linux]
switch *args: check-git switch *args: check-git
#!/usr/bin/env sh #!/usr/bin/env sh
if [[ "$(hostname)" == "nix-on-droid" ]]; then if [[ "$(hostname)" == "localhost" ]]; then
nix-on-droid switch --flake . nix-on-droid switch --flake .
else else
nh os switch . nh os switch .