From 7f55fb66f86792b0982a116efea989abef665c92 Mon Sep 17 00:00:00 2001 From: Rezart Qelibari Date: Wed, 6 Apr 2022 11:30:04 +0200 Subject: [PATCH] Prevent print from parsing usage string options --- modules/01-system-settings.sh | 2 +- modules/02-create-filevault-user.sh | 2 +- modules/03-install-brew.sh | 2 +- modules/04-install-brew-apps.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/01-system-settings.sh b/modules/01-system-settings.sh index 7a46d78..fe191c5 100755 --- a/modules/01-system-settings.sh +++ b/modules/01-system-settings.sh @@ -127,7 +127,7 @@ function getUsage() { Copyright (C) 2022 Rezart Qelibari, Astzweig GmbH & Co. KG License EUPL-1.2. There is NO WARRANTY, to the extent permitted by law. USAGE - print ${text} + print -- ${text} } if [[ "${ZSH_EVAL_CONTEXT}" == toplevel ]]; then diff --git a/modules/02-create-filevault-user.sh b/modules/02-create-filevault-user.sh index fb14d73..84d5176 100755 --- a/modules/02-create-filevault-user.sh +++ b/modules/02-create-filevault-user.sh @@ -260,7 +260,7 @@ function getUsage() { Copyright (C) 2022 Rezart Qelibari, Astzweig GmbH & Co. KG License EUPL-1.2. There is NO WARRANTY, to the extent permitted by law. USAGE - print ${text} + print -- ${text} } if [[ "${ZSH_EVAL_CONTEXT}" == toplevel ]]; then diff --git a/modules/03-install-brew.sh b/modules/03-install-brew.sh index 0d6b3fc..0030b1b 100755 --- a/modules/03-install-brew.sh +++ b/modules/03-install-brew.sh @@ -338,7 +338,7 @@ function getUsage() { Copyright (C) 2022 Rezart Qelibari, Astzweig GmbH & Co. KG License EUPL-1.2. There is NO WARRANTY, to the extent permitted by law. USAGE - print ${text} + print -- ${text} } if [[ "${ZSH_EVAL_CONTEXT}" == toplevel ]]; then diff --git a/modules/04-install-brew-apps.sh b/modules/04-install-brew-apps.sh index 722fb09..da35e9d 100755 --- a/modules/04-install-brew-apps.sh +++ b/modules/04-install-brew-apps.sh @@ -135,7 +135,7 @@ function getUsage() { Copyright (C) 2022 Rezart Qelibari, Astzweig GmbH & Co. KG License EUPL-1.2. There is NO WARRANTY, to the extent permitted by law. USAGE - print ${text} + print -- ${text} } if [[ "${ZSH_EVAL_CONTEXT}" == toplevel ]]; then