X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsite_avenger%2Fsitepush.sh;h=963586925af436eb48c74226cf15d0b6ce9602a2;hb=5eed0d1279cd85a36da87ecaaff6c261f41a87f8;hp=99a8cbefb9ce1d4460fd7ff5309d53b3d21b6cba;hpb=46da48836dd0d44a6f7a9129b516d5a5eb2fe223;p=feisty_meow.git diff --git a/scripts/site_avenger/sitepush.sh b/scripts/site_avenger/sitepush.sh index 99a8cbef..96358692 100644 --- a/scripts/site_avenger/sitepush.sh +++ b/scripts/site_avenger/sitepush.sh @@ -44,7 +44,7 @@ sep # this should set the site_store_path variable if everything goes well. update_repo "$full_app_dir" "$CHECKOUT_DIR_NAME" "$DEFAULT_REPOSITORY_ROOT" "$repo_name" -check_result "Updating the repository storage directory" +test_or_die "Updating the repository storage directory" sep @@ -61,33 +61,3 @@ sep echo "Finished checking in the site at ${app_dirname}." - - - - - -echo bailing before deprecated code is run.; exit 0 - - -# see if there are any unmerged files, if so, do not try to push files -if [[ `git ls-files -u` ]]; then - echo "Git: local changes!" - echo "Aborting. Please resolve manually and re-run this script" -else - # http://stackoverflow.com/questions/5143795/how-can-i-check-in-a-bash-script-if-my-local-git-repo-has-changes - # see if there are any new files that need pushing (status will show new files) - if [[ `git status --porcelain` ]]; then - # changes - git add . -A - git commit -m "SERVER. Adding user uploaded files. [via sitepush]" - git push origin master - echo "Git: changes pushed to [master]" - else - # no changes - echo "Git: nothing to push. [master] up to date." - fi -fi - -#### - -