From 24270851a3e9e6ff37f0a7a28861054c0363a8a6 Mon Sep 17 00:00:00 2001 From: Marley Date: Sun, 21 Jan 2024 21:49:27 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20Installer=20works?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SHE'S BACK BABEY! --- homebrew/brew.sh | 0 os/pref.sh | 0 script/dot.sh | 6 +++--- script/utils.sh | 0 zsh/fpath.zsh | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) mode change 100644 => 100755 homebrew/brew.sh mode change 100644 => 100755 os/pref.sh mode change 100644 => 100755 script/dot.sh mode change 100644 => 100755 script/utils.sh diff --git a/homebrew/brew.sh b/homebrew/brew.sh old mode 100644 new mode 100755 diff --git a/os/pref.sh b/os/pref.sh old mode 100644 new mode 100755 diff --git a/script/dot.sh b/script/dot.sh old mode 100644 new mode 100755 index d2b5832..357ee16 --- a/script/dot.sh +++ b/script/dot.sh @@ -168,7 +168,7 @@ link_file() local skip= local action= - if [[ -f "$dst" -o -d "$dst" -o -L "$dst" ]]; then + if [ -f "$dst" -o -d "$dst" -o -L "$dst" ]; then if ! $overwrite_all && ! $backup_all && ! $skip_all; then local current_src="$(readlink $dst)" @@ -214,7 +214,7 @@ link_file() fi - if ! $skip; then + if [[ $skip != "true" ]]; then # "false" or empty ln -s "$src" "$dst" print_success "Linked $src to $dst" fi @@ -288,7 +288,7 @@ main() if [[ -x "${dotfiles_dir}/script/utils.sh" ]]; then . "${dotfiles_dir}/script/utils.sh" || exit 1 else - download_utils || exit 1 + download_utils || exit 1 fi # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/script/utils.sh b/script/utils.sh old mode 100644 new mode 100755 diff --git a/zsh/fpath.zsh b/zsh/fpath.zsh index 7233315..488033b 100644 --- a/zsh/fpath.zsh +++ b/zsh/fpath.zsh @@ -4,7 +4,7 @@ if [[ -d "$DOT/functions" ]]; then fpath=($DOT/functions $fpath) - autoload -U $DOT/functions/*(:t) + { autoload -U $DOT/functions/*(:t); } &> /dev/null fi # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -