From b62658ece2df6deaba0e0c286923da0040838be1 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 21 Aug 2025 14:35:10 +0200 Subject: [PATCH] Deal with unset variable properly --- builder/cmds/autostart.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/builder/cmds/autostart.sh b/builder/cmds/autostart.sh index 3a45f9f..37961e9 100644 --- a/builder/cmds/autostart.sh +++ b/builder/cmds/autostart.sh @@ -16,11 +16,11 @@ catch_errors() { echo "The failing command was: \`$BASH_COMMAND\` (exit code: $?)" echo "Get help from the community: https://discord.gg/tXFUdasqhY" - if [[ -n $OMARCHY_USER ]]; then + if [[ -z ${OMARCHY_USER-} ]]; then + echo "You can retry by running: ./configurator" + else echo "You can retry by running: bash ~/.local/share/omarchy/install.sh" chroot_bash - else - echo "You can retry by running: ./configurator" fi }