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 &>dev/null
+ git clone $repository $local_checkout &>/dev/null
cd $local_checkout
- git checkout $branch &>dev/null
+ git checkout $branch &>/dev/null
else
echo -n $(date "$date_fmt"); echo " - Updating local checkout"
cd $local_checkout
- git checkout $branch &>dev/null
- git pull origin $branch &>dev/null
+ 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"
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/ >dev/null
+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