diff options
author | Linus Nordberg <linus@nordu.net> | 2017-07-28 15:14:03 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2017-07-28 15:14:03 +0200 |
commit | 4223da5ae4d440774e350a8489b7d4bd0fe38c11 (patch) | |
tree | abf75b36f7b066f8dcf674fc8decb473c1585d15 /global/post-tasks.d/018packages | |
parent | 883c92a407ad1db7925eec9bab483b06d12aa5a7 (diff) |
Update from sunet/multiverse.ct-ops-2017-07-28-v01
Diffstat (limited to 'global/post-tasks.d/018packages')
-rwxr-xr-x | global/post-tasks.d/018packages | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/global/post-tasks.d/018packages b/global/post-tasks.d/018packages index 3e2e26e..9370e10 100755 --- a/global/post-tasks.d/018packages +++ b/global/post-tasks.d/018packages @@ -24,8 +24,8 @@ if [ -f $CONFIG ]; then # First pass to clone any new modules, and update those marked for updating. grep -E -v "^#" $CONFIG | ( while read module src update pattern; do - # We only support git:// urls atm - if [ "${src:0:6}" = "git://" ]; then + # We only support git:// urls and https:// urls atm + if [ "${src:0:6}" = "git://" -o "${src:0:8}" = "https://" ]; then if [ ! -d $CACHE_DIR/scm/$module ]; then git clone -q $src $CACHE_DIR/scm/$module elif [ -d $CACHE_DIR/scm/$module/.git ]; then @@ -63,7 +63,7 @@ if [ -f $CONFIG ]; then grep -E -v "^#" $CONFIG | ( while read module src update pattern; do # We only support git:// urls atm - if [ "${src:0:6}" = "git://" ]; then + if [ "${src:0:6}" = "git://" -o "${src:0:8}" = "https://" ]; then # Verify git tag cd $CACHE_DIR/scm/$module TAG=$(git tag -l "${pattern:-*}" | sort | tail -1) |