Skip to content

Commit

Permalink
v160
Browse files Browse the repository at this point in the history
local ```i``` in dietpi-notify, to avoid overwriting host script:
https://github.com/Fourdee/DietPi/issues/1311#issuecomment-352638142
  • Loading branch information
Fourdee committed Dec 19, 2017
1 parent e28a6cd commit d0214d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dietpi/func/dietpi-globals
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,10 @@
# - $1 = start printing from word number $1
Print_Input_String(){

local i=0
for (( i=$1;i<${#ainput_string[@]} ;i++))
do
echo -ne " ${ainput_string[${i}]}"
echo -ne ${ainput_string[$i]}
done

echo -e ""
Expand Down

0 comments on commit d0214d0

Please sign in to comment.