Fix shell check issues in alpine:
- make script POSIX compatible - fix quoting
This commit is contained in:
parent
47d86c06fd
commit
fd123f2999
1 changed files with 5 additions and 5 deletions
|
|
@ -2,14 +2,14 @@
|
||||||
|
|
||||||
. ./common.sh
|
. ./common.sh
|
||||||
|
|
||||||
MIRROR=http://dl-cdn.alpinelinux.org/alpine/
|
MIRROR="http://dl-cdn.alpinelinux.org/alpine/"
|
||||||
|
|
||||||
alp() {
|
alp() {
|
||||||
local VER=$1
|
alp_version="$1"
|
||||||
local REPOS=$2
|
alp_repositories="$2"
|
||||||
|
|
||||||
for REPO in $REPOS; do
|
for repository in $alp_repositories; do
|
||||||
index alpine --sys alpine-$VER --mirror ${MIRROR}v$VER --repo $REPO
|
index alpine --sys alpine-"$alp_version" --mirror ${MIRROR}v"$alp_version" --repo "$repository"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue