~ubuntu-archive/ubuntu-archive-scripts/trunk

« back to all changes in this revision

Viewing changes to update-sync-blacklist

  • Committer: Adam Conrad
  • Date: 2019-10-18 09:32:04 UTC
  • Revision ID: adconrad@0c3.net-20191018093204-yewoy93q72thygo2
chdist: Commit production hack to avoid perl warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
set -e
3
3
 
4
 
BRANCH="$HOME/sync-blocklist"
5
 
SOURCE="$BRANCH/sync-blocklist.txt"
6
 
DESTINATION="$HOME/public_html/sync-blocklist.txt"
 
4
BRANCH="$HOME/sync-blacklist"
 
5
SOURCE="$BRANCH/sync-blacklist.txt"
 
6
DESTINATION="$HOME/public_html/sync-blacklist.txt"
7
7
 
8
 
git -C "$BRANCH" pull -q
 
8
bzr pull -q --overwrite -d "$BRANCH"
9
9
cp -a "$SOURCE" "$DESTINATION.new"
10
10
mv "$DESTINATION.new" "$DESTINATION"