Permalink
Browse files

Add support for optional non-hidden scripts

If non-hidden scripts are found, prefer those instead. Should help with
testing.
  • Loading branch information...
1 parent 949be7a commit b76a6b89ae08d76e544c78b7c84ce0b7ecc8c644 @gapan committed Jun 27, 2014
Showing with 11 additions and 2 deletions.
  1. +11 −2 sbo/sync.sh
View
@@ -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.