home-environment: remove no-op commands

(cherry picked from commit 989d4fa536)
This commit is contained in:
David Arnold 2022-11-01 09:51:58 -05:00 committed by Robert Helgesson
parent 071e28c869
commit 6639e3a837
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89
1 changed files with 1 additions and 3 deletions

View File

@ -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