From 1e0267ba5780f3716ec7f46af708062d934f46d4 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Sat, 8 Oct 2016 00:43:17 +1100 Subject: [PATCH] Avoid using fancy assignment syntax after 'local' so that dots works in zsh < 5.1 --- local/bin/dots | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/local/bin/dots b/local/bin/dots index 97d43e8..268c463 100755 --- a/local/bin/dots +++ b/local/bin/dots @@ -37,7 +37,8 @@ clone-one() { } link() { - local packages=($argv) + local -a packages + packages=($argv) if (( $#packages == 0 )); then packages=( $DOTFILES/*(N:t) ) if (( $#packages == 0 )); then @@ -65,7 +66,8 @@ process-stow-no-fold() { } status() { - local packages=($argv) + local -a packages + packages=($argv) (( $#packages == 0 )) && packages=( $DOTFILES/*(N:t) ) local length=${#${(O@)packages//?/X}[1]} cd $DOTFILES