summaryrefslogtreecommitdiff
path: root/bin/ct
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ct')
-rwxr-xr-xbin/ct7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/ct b/bin/ct
index 721259e..a5ff803 100755
--- a/bin/ct
+++ b/bin/ct
@@ -331,8 +331,11 @@ function vcs_push (
)
function vcs_status (
+ typeset gitstatus
vcs_setup $1
- git status
+ gitstatus=$(git status)
+ [[ $gitstatus == *'nothing to commit (working directory clean)' ]] && gitstatus=''
+ echo $gitstatus
)
## List stuff
@@ -754,7 +757,7 @@ function pkg_status {
typeset vcs_status
check_installed $1
vcs_status=$(PAGER='' vcs_status $1)
- if [[ -n $vcs_status && $vcs_status != *'nothing to commit (working directory clean)' ]] {
+ if [[ -n $vcs_status ]] {
if ((SILENT)) {
echo $1
} else {