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 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -