Skip to content

Commit

Permalink
fix: fix var name
Browse files Browse the repository at this point in the history
  • Loading branch information
Antiz96 committed Sep 23, 2024
1 parent cfb8360 commit a7748c0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions src/arch-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ version="2.3.3"
option="${1}"

# Define the directory containing libraries
if [ -d "${XDG_DATA_HOME}/${_name}/lib" ]; then
libdir="${XDG_DATA_HOME}/${_name}/lib"
elif [ -d "${HOME}/.local/share/${_name}/lib" ]; then
libdir="${HOME}/.local/share/${_name}/lib"
elif [ -d "${XDG_DATA_DIRS}/${_name}/lib" ]; then
libdir="${XDG_DATA_DIRS}/${_name}/lib"
elif [ -d "/usr/local/share/${_name}/lib" ]; then
libdir="/usr/local/share/${_name}/lib"
elif [ -d "/usr/share/${_name}/lib" ]; then
libdir="/usr/share/${_name}/lib"
if [ -d "${XDG_DATA_HOME}/${name}/lib" ]; then
libdir="${XDG_DATA_HOME}/${name}/lib"
elif [ -d "${HOME}/.local/share/${name}/lib" ]; then
libdir="${HOME}/.local/share/${name}/lib"
elif [ -d "${XDG_DATA_DIRS}/${name}/lib" ]; then
libdir="${XDG_DATA_DIRS}/${name}/lib"
elif [ -d "/usr/local/share/${name}/lib" ]; then
libdir="/usr/local/share/${name}/lib"
elif [ -d "/usr/share/${name}/lib" ]; then
libdir="/usr/share/${name}/lib"
else
echo -e >&2 "ERROR: Libraries directory not found"
exit 14
Expand Down
4 changes: 2 additions & 2 deletions src/lib/full_upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ if [ -n "${proceed_with_update}" ]; then
source "${libdir}/list_news.sh"

# Source the "update" library which updates packages
# shellcheck source=src/lib/list_update.sh
source "${libdir}/list_update.sh"
# shellcheck source=src/lib/update.sh
source "${libdir}/update.sh"

# Record the date of the last successful update (used by other stages)
date +%Y-%m-%d > "${statedir}/last_update_run"
Expand Down

0 comments on commit a7748c0

Please sign in to comment.