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

« back to all changes in this revision

Viewing changes to update-sync-blocklist

  • Committer: Sebastien Bacher
  • Date: 2023-07-05 14:37:23 UTC
  • mto: This revision was merged to the branch mainline in revision 356.
  • Revision ID: seb128@ubuntu.com-20230705143723-f0d34ztzwtizg6ps
Update for the new sync-blocklist git repository

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-blacklist"
5
 
SOURCE="$BRANCH/sync-blacklist.txt"
6
 
DESTINATION="$HOME/public_html/sync-blacklist.txt"
 
4
BRANCH="$HOME/sync-blocklist"
 
5
SOURCE="$BRANCH/sync-blocklist.txt"
 
6
DESTINATION="$HOME/public_html/sync-blocklist.txt"
7
7
 
8
 
bzr pull -q --overwrite -d "$BRANCH"
 
8
git -C "$BRANCH" pull -q
9
9
cp -a "$SOURCE" "$DESTINATION.new"
10
10
mv "$DESTINATION.new" "$DESTINATION"