aboutsummaryrefslogtreecommitdiff
path: root/bin/luxcena-neo-cli.sh
diff options
context:
space:
mode:
authorJakob Stendahl <jakob.stendahl@outlook.com>2018-12-05 23:55:17 +0100
committerJakob Stendahl <jakob.stendahl@outlook.com>2018-12-05 23:55:17 +0100
commitc1392518922a6438c6828f3eb271a60163e011c6 (patch)
treedddc62ea180b477eceb04984d5f4f584293fbead /bin/luxcena-neo-cli.sh
parent52cd3bb8d9c0f1f63cf30e2a474141e3385069d3 (diff)
downloadLuxcena-Neo-c1392518922a6438c6828f3eb271a60163e011c6.tar.gz
Luxcena-Neo-c1392518922a6438c6828f3eb271a60163e011c6.zip
:construction: Make branch check work
Diffstat (limited to 'bin/luxcena-neo-cli.sh')
-rwxr-xr-xbin/luxcena-neo-cli.sh4
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