Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Antiz96 committed May 19, 2024
1 parent 8a4c5a2 commit e4cbf91
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/script/arch-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e4cbf91

Please sign in to comment.