Skip to content

Commit 0febde1

Browse files
committed
Fixed poor output formating in install scripts
On branch main Your branch is up to date with 'origin/main'. Changes to be committed: modified: auto-install.sh modified: install.sh
1 parent aa47f73 commit 0febde1

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

auto-install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ git add .
168168
# Update host in flake.nix (first occurrence of host = "...")
169169
sed -i -E '0,/(^\s*host\s*=\s*")([^"]*)(";)/s//\1'"$hostName"'\3/' ./flake.nix
170170
# Verify
171-
grep -nE "^[[:space:]]*host[[:space:]]*=" ./flake.nix || true
171+
echo "$OK Hostname updated in flake.nix:"
172+
grep -E "^[[:space:]]*host[[:space:]]*=" ./flake.nix | head -1 || true
172173

173174
printf "\n%.0s" {1..2}
174175

install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ git add .
141141
# Update host in flake.nix (first occurrence of host = "...")
142142
sed -i -E '0,/(^\s*host\s*=\s*")([^"]*)(";)/s//\1'"$hostName"'\3/' ./flake.nix
143143
# Verify
144-
grep -nE "^[[:space:]]*host[[:space:]]*=" ./flake.nix || true
144+
echo "$OK Hostname updated in flake.nix:"
145+
grep -E "^[[:space:]]*host[[:space:]]*=" ./flake.nix | head -1 || true
145146

146147
printf "\n%.0s" {1..2}
147148

0 commit comments

Comments
 (0)