From 572e263e6356212022992ef0549c16de04d2030b Mon Sep 17 00:00:00 2001 From: Lisa Marie Maginnis Date: Wed, 20 Jul 2016 14:40:44 -0400 Subject: [PATCH] debug lines --- edward.git/post-update | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/edward.git/post-update b/edward.git/post-update index cce0604..8e5b5f6 100755 --- a/edward.git/post-update +++ b/edward.git/post-update @@ -52,14 +52,14 @@ echo -n $(date "$date_fmt"); echo " - Remote user: $remote_user" if [ ! -d $local_checkout ]; then echo -n $(date "$date_fmt"); echo " - No local checkout detected, creating now" mkdir -p $local_checkout - git clone $repository $local_checkout + git clone $repository $local_checkout &>dev/null cd $local_checkout - git checkout $branch + git checkout $branch &>dev/null else echo -n $(date "$date_fmt"); echo " - Updating local checkout" cd $local_checkout - git checkout $branch - git pull origin $branch + git checkout $branch &>dev/null + git pull origin $branch &>dev/null fi echo -n $(date "$date_fmt"); echo " - Packing zip and tarball for package host" @@ -70,7 +70,7 @@ tar czv --exclude-vcs -f $package_name.tar.gz $branch &>/dev/null zip -r $package_name $branch -x "*/.git/*" "*/.gitignore" &>/dev/null echo -n $(date "$date_fmt"); echo " - Pushing to packaging server: https://$package_host/emailselfdefense.fsf.org/edward/" -scp $package_name.zip $package_name.tar.gz $package_user@$package_host:$package_path/ +scp $package_name.zip $package_name.tar.gz $package_user@$package_host:$package_path/ >dev/null # Stop here if not updating a host if [ -z $target_host ]; then @@ -78,5 +78,5 @@ if [ -z $target_host ]; then fi echo -n $(date "$date_fmt"); echo " - Pushing files to target host: $target_host:$target_path" -rsync -arSX --exclude=.git/ --delete $local_checkout/* $remote_user@$target_host:$target_path/ &>/dev/null +rsync -arvPSX --exclude=.git/ --delete $local_checkout/* $remote_user@$target_host:$target_path/ -- 2.25.1