trivial change
This commit is contained in:
18
hm-switch
18
hm-switch
@@ -3,19 +3,17 @@
|
|||||||
echo "You're about to switch your home-manager configuration as '$USER'"
|
echo "You're about to switch your home-manager configuration as '$USER'"
|
||||||
read -p "Continue (y/n)?" conf
|
read -p "Continue (y/n)?" conf
|
||||||
|
|
||||||
if [ ${conf,,} != "y" ]; then
|
if [[ ${conf,,} =~ ^(y|yes)$ ]]; then
|
||||||
echo "If this is not you, then log into your profile first!"
|
read -p "Do you want to use sudo instead of doas? (y/n)" conf2
|
||||||
exit 1
|
elev="doas"
|
||||||
else
|
if [[ ${conf2,,} =~ ^(y|yes)$ ]]; then
|
||||||
|
|
||||||
read -p "Do you want to use sudo instead of doas? (y/n)" conf2
|
|
||||||
elev="doas"
|
|
||||||
if [ ${conf2,,} == "y" ]; then
|
|
||||||
elev="sudo"
|
elev="sudo"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$elev nix build .\#hm-configs.$USER.activationPackage -o hm-result
|
$elev nix build .\#hm-configs.$USER.activationPackage -o hm-result
|
||||||
./hm-result/activate
|
./hm-result/activate
|
||||||
$elev unlink hm-result
|
$elev unlink hm-result
|
||||||
|
else
|
||||||
|
echo "If this is not you, then log into your profile first!"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user