1
0
mirror of https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git synced 2025-12-16 03:42: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 - apk add oksh
- ln -sf /bin/oksh /bin/sh - ln -sf /bin/oksh /bin/sh
# disabling for now - yash now hates 'local' # disabled - yash hates 'local'
.test-yash: #test-yash:
extends: test-default # extends: test-default
before_script: # before_script:
- apk add yash # - apk add yash
- ln -sf /usr/bin/yash /bin/sh # - ln -sf /usr/bin/yash /bin/sh
test-zsh: test-zsh:
extends: test-default extends: test-default

View File

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

View File

@ -10,7 +10,7 @@ set -e
usage() { usage() {
cat <<-EOF 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 EOF
} }
@ -101,7 +101,7 @@ case "$phase" in
net) INIT_ACTIONS="$INIT_ACTIONS_NET";; net) INIT_ACTIONS="$INIT_ACTIONS_NET";;
main) INIT_ACTIONS="$INIT_ACTIONS_MAIN";; main) INIT_ACTIONS="$INIT_ACTIONS_MAIN";;
final) INIT_ACTIONS="$INIT_ACTIONS_FINAL";; final) INIT_ACTIONS="$INIT_ACTIONS_FINAL";;
*) usage >&2; exit 1 *) usage >&2; exit 1;;
esac esac
printf '\n' >&2 printf '\n' >&2

View File

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