From 9ce03b8fca7dfb5308e5c858cdbb99a77bae3151 Mon Sep 17 00:00:00 2001 From: Marta Sokolska Date: Sun, 8 Jun 2025 17:41:38 +0200 Subject: [PATCH] Make pull optional --- nixie | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nixie b/nixie index 2492a24..7b204d3 100755 --- a/nixie +++ b/nixie @@ -108,8 +108,10 @@ pushd /etc/nixos > /dev/null echo -e "${IPurple}Running pixie. ${Purple}You might be asked to input the root password.${NC}" sudo echo -n -echo -e "${IPurple}Pulling from origin...${NC}" -sudo git pull +if [ "$1" == "pull" ]; then + echo -e "${IPurple}Pulling from origin...${NC}" + sudo git pull +fi CHOOSE_CASE