Skip to content

Commit bad24f3

Browse files
authored
Revert https to git source_sync_6.x.sh
1 parent cffaac2 commit bad24f3

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

scripts/source_sync_6.x.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,11 +318,11 @@ for ((i=0; i < NSOURCES; i++)); do
318318
DNLOAD=$(echo "${SOURCE_INFO_PROCESSED[i]}" | cut -f 5 -d ':')
319319

320320
if [ $DALL -eq 1 -o "x${DNLOAD}" == "xy" ]; then
321-
if ! DownloadAndSync "$WHAT" "${LDK_DIR}/${WHAT}" "https://${REPO}" "${TAG}" "${OPT}"; then
322-
if [[ $? == 1 ]]; then
323-
echo "Trying git protocol"
324-
DownloadAndSync "$WHAT" "${LDK_DIR}/${WHAT}" "git://${REPO}" "${TAG}" "${OPT}"
325-
fi
321+
DownloadAndSync "$WHAT" "${LDK_DIR}/${WHAT}" "git://${REPO}" "${TAG}" "${OPT}"
322+
tRET=$?
323+
let GRET=GRET+tRET
324+
if [ $tRET -ne 0 -a $EOE -eq 1 ]; then
325+
exit $tRET
326326
fi
327327
fi
328328
done

0 commit comments

Comments
 (0)