mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-19 12:06:25 +00:00
refactor(posix): replace echo bashisms with printf (fixes #479, SC3037)
This commit is contained in:
+3
-3
@@ -118,9 +118,9 @@ __bootstrap_webi() {
|
||||
# but that's okay, 'cmp -s' is good enough for us
|
||||
if cmp -s "${pkg_src_cmd}" "${my_current_cmd}"; then
|
||||
echo "${my_canonical_name} already installed:"
|
||||
echo -n " ${pkg_dst}"
|
||||
printf " %s" "${pkg_dst}"
|
||||
if [ "${pkg_src_cmd}" != "${my_current_cmd}" ]; then
|
||||
echo -n " => ${pkg_src}"
|
||||
printf " => %s" "${pkg_src}"
|
||||
fi
|
||||
echo ""
|
||||
exit 0
|
||||
@@ -345,7 +345,7 @@ __bootstrap_webi() {
|
||||
__init_installer() {
|
||||
|
||||
# do nothing - to satisfy parser prior to templating
|
||||
echo -n ""
|
||||
printf ""
|
||||
|
||||
# {{ installer }}
|
||||
|
||||
|
||||
@@ -17,11 +17,11 @@ __git_gpg_init() {
|
||||
gpg-pubkey-id
|
||||
)"
|
||||
|
||||
echo -n "Enabling automatic git commit signing...
|
||||
git config --global user.signingkey ${MY_KEY_ID}
|
||||
printf "Enabling automatic git commit signing...
|
||||
git config --global user.signingkey %s
|
||||
git config --global commit.gpgsign true
|
||||
git config --global log.showSignature true
|
||||
"
|
||||
" "${MY_KEY_ID}"
|
||||
|
||||
git config --global user.signingkey "${MY_KEY_ID}"
|
||||
git config --global commit.gpgsign true
|
||||
|
||||
@@ -70,7 +70,7 @@ _create_gpg_key() {
|
||||
echo >&2 "Choose a passphrase for this GPG Key."
|
||||
echo >&2 "(the passphrase will not be shown as you type)"
|
||||
echo >&2 ""
|
||||
echo >&2 -n "Passphrase: "
|
||||
printf >&2 "Passphrase: "
|
||||
MY_REPLY="$(__shadow_read)"
|
||||
echo >&2 ""
|
||||
echo "
|
||||
|
||||
Reference in New Issue
Block a user