Deal with unset variable properly

This commit is contained in:
David Heinemeier Hansson committed 2025-08-21 14:35:10 +02:00
1 parent 9ee004c1fb
commit b62658ece2
1 file changed
+3 -3
+3 -3
View File
@@ -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
}