From ea876e051b3f2669770d6ac8d19ec3641686a179 Mon Sep 17 00:00:00 2001 From: Anmol Sethi Date: Tue, 29 Nov 2022 14:18:52 -0800 Subject: [PATCH] install.sh: Improve dry run message and add short flag -d --- ci/release/_install.sh | 14 +++++++++----- ci/release/template/scripts/lib.sh | 5 +++-- ci/sub | 2 +- install.sh | 19 ++++++++++++------- 4 files changed, 25 insertions(+), 15 deletions(-) diff --git a/ci/release/_install.sh b/ci/release/_install.sh index 4cd840ca9..a66f2d730 100755 --- a/ci/release/_install.sh +++ b/ci/release/_install.sh @@ -14,7 +14,7 @@ help() { fi cat <&2 + printf '$COLOR must be 0, 1, false or true but got %s\n' "$COLOR" >&2 fi fi @@ -219,8 +219,9 @@ header() { } bigheader() { + set -- "$(echo "$*" | sed "s/^/ * /")" logp "/** - * $1 +$* **/" } diff --git a/ci/sub b/ci/sub index 765e3ddc7..18ad1a278 160000 --- a/ci/sub +++ b/ci/sub @@ -1 +1 @@ -Subproject commit 765e3ddc7bbd669f3605f9f877bc6004c1b80735 +Subproject commit 18ad1a2780f6e9119439a4b015de1ce0b875e0ba diff --git a/install.sh b/install.sh index 678dabfe5..112a76d50 100755 --- a/install.sh +++ b/install.sh @@ -68,7 +68,7 @@ should_color() { _COLOR=1 return 0 else - printf '$COLOR must be 0, 1, false or true but got %s' "$COLOR" >&2 + printf '$COLOR must be 0, 1, false or true but got %s\n' "$COLOR" >&2 fi fi @@ -225,8 +225,9 @@ header() { } bigheader() { + set -- "$(echo "$*" | sed "s/^/ * /")" logp "/** - * $1 +$* **/" } @@ -478,7 +479,7 @@ help() { fi cat <