Skip to content

Commit

Permalink
Add support for optional non-hidden scripts
Browse files Browse the repository at this point in the history
If non-hidden scripts are found, prefer those instead. Should help with
testing.
  • Loading branch information
gapan committed Jun 27, 2014
1 parent 949be7a commit b76a6b8
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions sbo/sync.sh
Expand Up @@ -2,12 +2,21 @@

VERSION="14.0"

rsync -av --delete --exclude '.sync.sh' --exclude '.sb_dupes_req' \
rsync -av --delete \
--exclude '.sync.sh' \
--exclude 'sync.sh' \
--exclude '.sb_dupes_req' \
--exclude 'sb_dupes_req' \
--exclude 'SBoEXCLUDE' \
rsync://slackbuilds.org/slackbuilds/$VERSION/ \
/var/www/vhosts/salix.enialis.net/pages/sbo/$VERSION

./.sb_dupes_req
# use the hidden file only when a non-hidden file is not there
if [ -x ./sb_dupes_req ]; then
./sb_dupes_req
else
./.sb_dupes_req
fi
mv SLACKBUILDS.TXT.NEW SLACKBUILDS.TXT
cat SLACKBUILDS.TXT | gzip > SLACKBUILDS.TXT.gz

0 comments on commit b76a6b8

Please sign in to comment.