diff options
author | Jakob Stendahl <jakob.stendahl@outlook.com> | 2018-12-06 00:15:57 +0100 |
---|---|---|
committer | Jakob Stendahl <jakob.stendahl@outlook.com> | 2018-12-06 00:15:57 +0100 |
commit | e56c60e17f5060203c993c852272e795b3ee6224 (patch) | |
tree | 8ba527af0dfbc1fa62ed31eff432e0253b8558e3 /bin/luxcena-neo-cli.sh | |
parent | 392caaca416174050d16b3549632e34592cb1128 (diff) | |
download | Luxcena-Neo-e56c60e17f5060203c993c852272e795b3ee6224.tar.gz Luxcena-Neo-e56c60e17f5060203c993c852272e795b3ee6224.zip |
:construction: Stash before changing branch
Diffstat (limited to 'bin/luxcena-neo-cli.sh')
-rwxr-xr-x | bin/luxcena-neo-cli.sh | 1 |
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 |