Last active
April 3, 2018 20:10
-
-
Save devsdmf/ad1063542bc91e2b71ac5a438f84feca to your computer and use it in GitHub Desktop.
Revisions
-
devsdmf revised this gist
Apr 3, 2018 . No changes.There are no files selected for viewing
-
devsdmf created this gist
Apr 3, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ #!/bin/bash function is_repo_dirty { local dir=$(pwd) [[ -n $1 ]] && dir=$1 [[ -n $(git status --porcelain 2> /dev/null | tail -n1) ]] && return false }