Skip to content

Commit

Permalink
Fixes scipt Dir
Browse files Browse the repository at this point in the history
  • Loading branch information
kRHYME7 committed Nov 17, 2024
1 parent c8e4e85 commit 6387e8b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
6 changes: 4 additions & 2 deletions Hyde
Original file line number Diff line number Diff line change
Expand Up @@ -997,10 +997,12 @@ USAGE
}

reload() { #? Just reload
if printenv HYPRLAND_INSTANCE_SIGNATURE &>/dev/null; then
if [[ -n "$HYPRLAND_INSTANCE_SIGNATURE" ]]; then
box_me "Reloading Dots"
"$HOME/.local/share/bin/swwwallcache.sh" -t ""
[ -f "$HOME/.local/share/bin/swwwallcache.sh" ] && $HOME/.local/share/bin/swwwallcache.sh -t ""
[ -f "$HOME/.local/lib/hyde/swwwallcache.sh" ] && $HOME/.local/lib/hyde/swwwallcache.sh -t ""
{ [ -n "$hydeTheme" ] && "${scrDir}/themeswitch.sh" -s "$hydeTheme"; } || "${scrDir}/swwwallcache.sh"

fi
}

Expand Down
12 changes: 7 additions & 5 deletions Scripts/lib-hyde
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#! /bin/env bash
# shellcheck disable=SC2154
# shellcheck disable=SC1090

SUPER() {
local command="$*"
Expand Down Expand Up @@ -107,7 +109,7 @@ box_me() {
done

local s="${sender}$*"
tput setaf ${color}
tput setaf "${color}"
echo -e "${s//?/═}"
echo -e "$s"
echo -e "${s//?/═}"
Expand Down Expand Up @@ -239,7 +241,7 @@ navigate_clone() {
source "${META_FILE}"
export CloneDir
export ScriptDir="${CloneDir}/Scripts"
cd $ScriptDir || handle_error "Cannot Change Directory to $ScriptDir"
cd "${ScriptDir}" || handle_error "Cannot Change Directory to "${ScriptDir}""
current_branch=$(git branch --show-current)
git_url=$(git remote get-url origin)
# check changes on the restore lst
Expand All @@ -250,11 +252,11 @@ set_metadata() {
CloneDir=${1:-${CloneDir}}
export CloneDir
export ScriptDir="${CloneDir}/Scripts"
cd $ScriptDir || handle_error "Cannot Change Directory to $ScriptDir"
cd "${ScriptDir}" || handle_error "Cannot Change Directory to "${ScriptDir}""
current_branch=$(git branch --show-current)
git_url=$(git remote get-url origin)
# check changes on the restore lst
restore_cfg_hash="$(md5sum $ScriptDir/restore_cfg.lst | cut -d' ' -f1)"
restore_cfg_hash="$(md5sum "${ScriptDir}"/restore_cfg.lst | cut -d' ' -f1)"
git_hash=$(git rev-parse HEAD)
hyde_version="$(printf "%s" "$(git describe --tags --always --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')")"
modify_date="$(git log -1 --pretty=format:" %cd")"
Expand Down Expand Up @@ -298,7 +300,7 @@ enable_package() {
fi
done

if [[ -n "${Pkg_Dep}" ]]; then
if [[ -n "${Pkg_Dep[*]}" ]]; then
echo -e "$0 Dependencies:\n$Pkg_Dep"
get_aurhlpr
if [ -n "${DISPLAY}" ]; then
Expand Down

0 comments on commit 6387e8b

Please sign in to comment.