mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 02:39:48 +01:00
home-environment: remove no-op commands
This commit is contained in:
parent
ccc9164b76
commit
989d4fa536
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue