changeset 617:39d66174b927

Corrected the shell script example. Seemed to have a line ending problem. git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@876 59b1889a-e5ac-428c-b0c7-476e01d41282
author thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
date Tue, 28 Oct 2008 18:18:51 +0000
parents 5c50273c27f6
children 0a9defd1b255
files indenters/example.sh
diffstat 1 files changed, 27 insertions(+), 23 deletions(-) [+]
line wrap: on
line diff
--- a/indenters/example.sh	Tue Oct 28 12:03:38 2008 +0000
+++ b/indenters/example.sh	Tue Oct 28 18:18:51 2008 +0000
@@ -1,23 +1,27 @@
-#!/bin/bash
-
-# if else test
-if [ -n "$string" ]; then
-echo "The string is \"$string\"!"
-else
-echo "The string is empty!"
-fi
-
-# for test
-for i in $array
-do
-echo "The string \"$i\" is in the array!"
-done
-
-while [ $count -le 10 ]
-do
-echo "We've counted up to $count."
-count=$[$count+1]  #increment counter by one.
-done
-
-echo "Passed everything!"
-#read -p "press any key to continue"
+#!/bin/sh
+
+string="Hallo Welt"
+# if else test
+if [ -n "$string" ]; then
+echo "The string is \"$string\"!"
+else
+echo "The string is empty!"
+fi
+
+# for test
+array="Text1 Text2 Text3 Text4"
+for i in $array
+do
+echo "The string \"$i\" is in the array!"
+done
+
+count=0
+while [ $count -le 10 ]
+do
+echo "We've counted up to $count."
+count=$[$count+1]  #increment counter by one.
+done
+
+echo "Passed everything!"
+#read -p "press any key to continue"
+