]> gitweb.fluxo.info Git - scripts.git/commitdiff
Check the status of the current project at status script
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 14 May 2017 17:26:35 +0000 (14:26 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 14 May 2017 17:26:35 +0000 (14:26 -0300)
status

diff --git a/status b/status
index 98a11f000353aba0b6471e63be2ed05210862d4c..397abce4f2c0547b6bb136a56e3a981c727ea0d4 100755 (executable)
--- a/status
+++ b/status
@@ -10,6 +10,9 @@ PROJECT="$1"
 if [ ! -z "$PROJECT" ]; then
   # Check the status of the given project
   cd $PROJECT &> /dev/null && git status
+elif git status &> /dev/null; then
+  # Check the status of the current project
+  mr status
 else
   # Ensure we are in the home folder
   cd