Changeset 1226 for dass-tools/usr
- Timestamp:
 - Nov 29, 2016, 12:51:52 PM (9 years ago)
 - File:
 - 
      
- 1 edited
 
- 
          
  dass-tools/usr/bin/reposync-add-repo.sh (modified) (3 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
dass-tools/usr/bin/reposync-add-repo.sh
r1215 r1226 7 7 set -o errexit -o nounset 8 8 9 DEST="" 9 10 if [ -r /etc/dass-it/reposync.conf ]; then 10 11 source /etc/dass-it/reposync.conf … … 27 28 local URL="$1" 28 29 [ -z "$1" ] && return 1 29 local CODE=`curl --location --write-out %{http_code} --silent --output /dev/null "$URL"`30 local CODE=`curl --location --write-out %{http_code} --silent --output /dev/null -- "$URL"` 30 31 printf " %s: %s\n" "$URL" "$CODE" 31 32 test "$CODE" = "200" … … 36 37 STARTDIR=${2:-$DEST} 37 38 38 if ! [ -d $STARTDIR ]; then 39 if [[ $REPO_FILE_URL == -* ]]; then 40 usage 41 exit 0 42 fi 43 44 if ! [ -d "$STARTDIR" ]; then 39 45 echo "FAILED: $STARTDIR is not a valid directory." 40 46 usage  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  