1
0
mirror of https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git synced 2025-12-15 19:32:44 +03:00

update tiny-cloud --help slightly and otherwise mostly tab/space adjustments

This commit is contained in:
Jake Buchholz Göktürk 2023-05-21 14:22:08 -07:00
parent c4195b5e8b
commit 69733fbedd
7 changed files with 30 additions and 29 deletions

View File

@ -20,12 +20,12 @@ test-oksh:
- apk add oksh
- ln -sf /bin/oksh /bin/sh
# disabling for now - yash now hates 'local'
.test-yash:
extends: test-default
before_script:
- apk add yash
- ln -sf /usr/bin/yash /bin/sh
# disabled - yash hates 'local'
#test-yash:
# extends: test-default
# before_script:
# - apk add yash
# - ln -sf /usr/bin/yash /bin/sh
test-zsh:
extends: test-default

View File

@ -15,7 +15,7 @@ log() {
local tag=$(basename "$0")
while [ "${1#-}" != "$1" ]; do
case "$1" in
-i) init=1 ;; # TODO: value = indent?
-i) init=1 ;;
-f) facility="$2"; shift ;;
-s) stderr=-s ;;
-t) tag="$tag/$2"; shift ;;

View File

@ -10,7 +10,7 @@ set -e
usage() {
cat <<-EOF
Usage: ${0##*/} [-h | --help] { early | net | main | final | --bootstrap [complete|incomplete|status] | --setup }
Usage: ${0##*/} [-h | --help] { early | net | main | final | --bootstrap {complete|incomplete|status} | --setup }
EOF
}
@ -101,7 +101,7 @@ case "$phase" in
net) INIT_ACTIONS="$INIT_ACTIONS_NET";;
main) INIT_ACTIONS="$INIT_ACTIONS_MAIN";;
final) INIT_ACTIONS="$INIT_ACTIONS_FINAL";;
*) usage >&2; exit 1
*) usage >&2; exit 1;;
esac
printf '\n' >&2

View File

@ -8,7 +8,8 @@ post-up)
/sbin/imds-net-sync
;;
pre-down)
/sbin/imds-net-sync -k
# TODO: someday make imds-net-sync a daemon
# /sbin/imds-net-sync -k
;;
*) ;;
esac