From 989d4fa536e9bcd6bc2d42b3ac8b9dc07b1f9d26 Mon Sep 17 00:00:00 2001 From: David Arnold Date: Tue, 1 Nov 2022 09:51:58 -0500 Subject: [PATCH] home-environment: remove no-op commands --- modules/home-environment.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/home-environment.nix b/modules/home-environment.nix index a0b9aa245..f609558e1 100644 --- a/modules/home-environment.nix +++ b/modules/home-environment.nix @@ -581,7 +581,6 @@ in if [[ -e "$nixProfilePath"/manifest.json ]] ; then nix profile list \ | { grep 'home-manager-path$' || test $? = 1; } \ - | awk -F ' ' '{ print $4 }' \ | cut -d ' ' -f 4 \ | xargs -t $DRY_RUN_CMD nix profile remove $VERBOSE_ARG else @@ -593,11 +592,10 @@ in else '' function nixReplaceProfile() { - local oldNix="$(which nix)" + local oldNix="$(command -v nix)" nix profile list \ | { grep 'home-manager-path$' || test $? = 1; } \ - | awk -F ' ' '{ print $4 }' \ | cut -d ' ' -f 4 \ | xargs -t $DRY_RUN_CMD nix profile remove $VERBOSE_ARG