From e4cbf911926a93f2a80718145c57d5e70c3158fe Mon Sep 17 00:00:00 2001 From: Robin Candau Date: Mon, 20 May 2024 00:25:30 +0200 Subject: [PATCH] Fix typo --- src/script/arch-update.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/script/arch-update.sh b/src/script/arch-update.sh index 452c81d..05d0083 100755 --- a/src/script/arch-update.sh +++ b/src/script/arch-update.sh @@ -682,16 +682,16 @@ case "${option}" in list_news ;; --gen-config) - if [ -f "${XDG_DATA_HOME}/doc/${name}/${name}.conf" ]; then - example_config_file="${XDG_DATA_HOME}/doc/${name}/${name}.conf" - elif [ -f "${HOME}/.local/share/doc/${name}/${name}.conf" ]; then - example_config_file="${HOME}/.local/share/doc/${name}/${name}.conf" - elif [ -f "${XDG_DATA_DIRS}/doc/${name}/${name}.conf" ]; then - example_config_file="${XDG_DATA_DIRS}/doc/${name}/${name}.conf" - elif [ -f "/usr/local/share/doc/${name}/${name}.conf" ]; then - example_config_file="/usr/local/share/doc/${name}/${name}.conf" - elif [ -f "/usr/share/doc/${name}/${name}.conf" ]; then - example_config_file="/usr/share/doc/${name}/${name}.conf" + if [ -f "${XDG_DATA_HOME}/doc/${name}/${name}.conf.example" ]; then + example_config_file="${XDG_DATA_HOME}/doc/${name}/${name}.conf.example" + elif [ -f "${HOME}/.local/share/doc/${name}/${name}.conf.example" ]; then + example_config_file="${HOME}/.local/share/doc/${name}/${name}.conf.example" + elif [ -f "${XDG_DATA_DIRS}/doc/${name}/${name}.conf.example" ]; then + example_config_file="${XDG_DATA_DIRS}/doc/${name}/${name}.conf.example" + elif [ -f "/usr/local/share/doc/${name}/${name}.conf.example" ]; then + example_config_file="/usr/local/share/doc/${name}/${name}.conf.example" + elif [ -f "/usr/share/doc/${name}/${name}.conf.example" ]; then + example_config_file="/usr/share/doc/${name}/${name}.conf.example" else error_msg "$(eval_gettext "Example configuration file not found")" exit 8