|
@ -25,8 +25,8 @@ function get_github { |
|
|
if [[ -d $DESTINATION ]]; then |
|
|
if [[ -d $DESTINATION ]]; then |
|
|
DESTINATION="$DESTINATION/$(echo $REPO_NAME | cut -d '/' -f2)-${release}.tgz" |
|
|
DESTINATION="$DESTINATION/$(echo $REPO_NAME | cut -d '/' -f2)-${release}.tgz" |
|
|
fi |
|
|
fi |
|
|
>&2 wget $url -O $DESTINATION |
|
|
|
|
|
echo $DESTINATION |
|
|
|
|
|
|
|
|
curl >&2 --no-progress-meter $url -o $DESTINATION |
|
|
|
|
|
echo "$DESTINATION" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
[[ $# -lt 2 ]] && usage |
|
|
[[ $# -lt 2 ]] && usage |
|
@ -39,5 +39,3 @@ case $REPO_TYPE in |
|
|
echo "repository type <${REPO_TYPE}> not yet supported!" && exit 1 |
|
|
echo "repository type <${REPO_TYPE}> not yet supported!" && exit 1 |
|
|
;; |
|
|
;; |
|
|
esac |
|
|
esac |
|
|
|
|
|
|
|
|
|
|
|
|