aboutsummaryrefslogtreecommitdiff
path: root/bin/luxcena-neo-cli.sh
diff options
context:
space:
mode:
authorJakob Stendahl <jakob.stendahl@outlook.com>2018-12-06 00:15:57 +0100
committerJakob Stendahl <jakob.stendahl@outlook.com>2018-12-06 00:15:57 +0100
commite56c60e17f5060203c993c852272e795b3ee6224 (patch)
tree8ba527af0dfbc1fa62ed31eff432e0253b8558e3 /bin/luxcena-neo-cli.sh
parent392caaca416174050d16b3549632e34592cb1128 (diff)
downloadLuxcena-Neo-e56c60e17f5060203c993c852272e795b3ee6224.tar.gz
Luxcena-Neo-e56c60e17f5060203c993c852272e795b3ee6224.zip
:construction: Stash before changing branch
Diffstat (limited to 'bin/luxcena-neo-cli.sh')
-rwxr-xr-xbin/luxcena-neo-cli.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/luxcena-neo-cli.sh b/bin/luxcena-neo-cli.sh
index ba55d36..defb766 100755
--- a/bin/luxcena-neo-cli.sh
+++ b/bin/luxcena-neo-cli.sh
@@ -156,6 +156,7 @@ elif [ "$action" == "version" ] || [ "$action" == "v" ]; then
elif [ "$action" == "selectBranch" ]; then
printf "Current $(git -C /home/lux-neo/src branch | grep \* | cut -d ' ' -f2)Branch \n"
+ runuser -l 'lux-neo' -c "git -C ~/src stash"
runuser -l 'lux-neo' -c "git -C ~/src checkout $2" || printf "\e[91mYou should now run \e[90m'sudo lux-neo update'\e[91m!\n"
else