diff options
author | Dubiousjim <dubiousjim@gmail.com> | 2013-07-01 17:14:14 -0400 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-07-03 07:42:53 +0000 |
commit | 4954634c054758d170777500a3ac1a2d7e0d6191 (patch) | |
tree | 23ed43f4abda9c11ce263476383be490638ecbab /setup-apkrepos.in | |
parent | c8f5f53d2e9f578bc6abaf4d86f8b37eda9950d7 (diff) | |
download | alpine-conf-4954634c054758d170777500a3ac1a2d7e0d6191.zip |
various: use long-form apk options
Diffstat (limited to 'setup-apkrepos.in')
-rwxr-xr-x | setup-apkrepos.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/setup-apkrepos.in b/setup-apkrepos.in index ab48471..8cb940f 100755 --- a/setup-apkrepos.in +++ b/setup-apkrepos.in @@ -154,8 +154,8 @@ done # main # install alpine-mirrors if its not already there to_uninstall= -if ! apk info -q -e alpine-mirrors; then - apk add -q alpine-mirrors +if ! apk info --quiet --installed alpine-mirrors; then + apk add --quiet alpine-mirrors to_uninstall=alpine-mirrors fi @@ -199,10 +199,10 @@ done if [ -n "$changed" ]; then echo -n "Updating repository indexes... " - apk update -q && echo "done." + apk update --quiet && echo "done." fi # clean up if [ -n "$to_uninstall" ]; then - apk del -q alpine-mirrors + apk del --quiet alpine-mirrors fi |