diff options
Diffstat (limited to 'common/home/scripts')
| -rw-r--r-- | common/home/scripts/loadconfig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/home/scripts/loadconfig b/common/home/scripts/loadconfig index f355092..28adbd0 100644 --- a/common/home/scripts/loadconfig +++ b/common/home/scripts/loadconfig @@ -34,7 +34,7 @@ case "$cmd" in declare -i i=0 - sudo nixos-rebuild "$kind" --flake "$CONFIG_PATH" 2>&1 | while read line; do + sudo nixos-rebuild "$kind" --flake "$CONFIG_PATH" 2>&1 | while IFS="" read -r line || [ -n "$line" ]; do case "$line" in these*)n=$(echo "$line" | grep -Eo '[0-9]*');; "building '"*) @@ -45,7 +45,7 @@ case "$cmd" in *error*) dunstify -r "$NID" -u 2 " NixOS - Config" "Error Loading Config" ;; - Done.) + *Done.*) dunstify -r "$NID" " NixOS - Config" "Switching Config $desc.\nDone." ;; esac |