github.com/hanks177/podman/v4@v4.1.3-0.20220613032544-16d90015bc83/hack/tree_status.sh (about)

     1  #!/usr/bin/env bash
     2  set -e
     3  
     4  SUGGESTION="${SUGGESTION:-sync the vendor.conf and commit all changes.}"
     5  
     6  STATUS=$(git status --porcelain)
     7  if [[ -z $STATUS ]]
     8  then
     9  	echo "tree is clean"
    10  else
    11  	echo "tree is dirty, please $SUGGESTION"
    12  	echo ""
    13  	echo "$STATUS"
    14  	exit 1
    15  fi