From 2065e42dff4c7d1c744fceea8c1d1e82b611221a Mon Sep 17 00:00:00 2001 From: Ting-Wei Lan Date: Sat, 16 May 2015 21:58:30 +0800 Subject: =?UTF-8?q?bash=5Finclude:=20=E4=BF=AE=E6=AD=A3=20configfile=5Ffet?= =?UTF-8?q?ch=20=E4=B8=AD=E7=9A=84=E8=AA=9E=E6=B3=95=E5=95=8F=E9=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bash_include | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bash_include') diff --git a/bash_include b/bash_include index 36c42fc..42c2637 100644 --- a/bash_include +++ b/bash_include @@ -619,11 +619,11 @@ function configfile_fetch () fi args=("$@") - for((i=1, j=0; i<=$#; i++, j++)){ + for((i=1, j=0; i<$#; i++, j++)){ file_name[$j]="${args[$i]}" } - if [ -z "$file_name"]; then + if [ -z "$file_name" ]; then file_name=("bash_include" "vimrc" "screenrc") fi -- cgit v1.2.3