github.com/containers/libpod@v1.9.4-0.20220419124438-4284fd425507/hack/tree_status.sh (about)

     1  #!/bin/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