diff options
author | Jakob Stendahl <jakob.stendahl@outlook.com> | 2018-12-05 23:55:17 +0100 |
---|---|---|
committer | Jakob Stendahl <jakob.stendahl@outlook.com> | 2018-12-05 23:55:17 +0100 |
commit | c1392518922a6438c6828f3eb271a60163e011c6 (patch) | |
tree | dddc62ea180b477eceb04984d5f4f584293fbead /bin | |
parent | 52cd3bb8d9c0f1f63cf30e2a474141e3385069d3 (diff) | |
download | Luxcena-Neo-c1392518922a6438c6828f3eb271a60163e011c6.tar.gz Luxcena-Neo-c1392518922a6438c6828f3eb271a60163e011c6.zip |
:construction: Make branch check work
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/luxcena-neo-cli.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/luxcena-neo-cli.sh b/bin/luxcena-neo-cli.sh index d744869..ba55d36 100755 --- a/bin/luxcena-neo-cli.sh +++ b/bin/luxcena-neo-cli.sh @@ -151,13 +151,13 @@ elif [ "$action" == "log" ]; then elif [ "$action" == "version" ] || [ "$action" == "v" ]; then printf "╭─────────────────────╮\n" printf "│ Version: Unknown │\n" - printf "│ branch : $(git branch -C /home/lux-neo/src | grep \* | cut -d ' ' -f2) │\n" + printf "│ branch : $(git -C /home/lux-neo/src branch | grep \* | cut -d ' ' -f2) │\n" printf "╰─────────────────────╯\n\n" 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 checkout $2" || printf "\e[91mYou should now run \e[90m'sudo lux-neo update'\e[91m!\n" - + else usage fi |