Skip to content

Instantly share code, notes, and snippets.

@kelegorm
Created November 14, 2018 10:50
Show Gist options
  • Save kelegorm/180d01cb90a868b3ca9749fbf0c91019 to your computer and use it in GitHub Desktop.
Save kelegorm/180d01cb90a868b3ca9749fbf0c91019 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
check_update () {
local HGSTATUS=`hg status`
if [[ HGSTATUS = "M res/tags.csv" ]]; then
hg commit -m "tags.csv updated"
# hg push
return
fi
echo "nothing changed or changes are unexpected"
}
check_update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment