Skip to content

Commit 83c2a0e

Browse files
committed
Fix indents in the code listings
1 parent f16d7c9 commit 83c2a0e

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

manuscript/BashScripting/conditional-statement.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ The `case` statement looks this way:
573573
case STRING in
574574
PATTERN_1)
575575
ACTION_1
576-
;;
576+
;;
577577
578578
PATTERN_2)
579579
ACTION_2

manuscript/resources/code/BashScripting/archiving.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ operation="$1"
44

55
if [[ "$operation" == "-a" ]]
66
then
7-
bsdtar -c -f documents.tar ~/Documents
7+
bsdtar -c -f documents.tar ~/Documents
88
elif [[ "$operation" == "-c" ]]
99
then
10-
bsdtar -c -j -f documents.tar.bz2 ~/Documents
10+
bsdtar -c -j -f documents.tar.bz2 ~/Documents
1111
elif [[ "$operation" == "-x" ]]
1212
then
13-
bsdtar -x -f documents.tar*
13+
bsdtar -x -f documents.tar*
1414
else
15-
echo "Invalid option"
16-
exit 1
15+
echo "Invalid option"
16+
exit 1
1717
fi

manuscript/resources/code/BashScripting/for-array.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ array=(Alice Bob Eve Mallory)
44

55
for element in "${array[@]}"
66
do
7-
echo "$element"
7+
echo "$element"
88
done

manuscript/resources/code/BashScripting/for-elements.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ array=(Alice Bob Eve Mallory)
44

55
for element in "${array[@]:0:2}"
66
do
7-
echo "$element"
7+
echo "$element"
88
done

manuscript/resources/code/BashScripting/quiz-variable-scope.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
bar()
44
{
5-
echo "bar1: var = $var"
6-
var="bar_value"
7-
echo "bar2: var = $var"
5+
echo "bar1: var = $var"
6+
var="bar_value"
7+
echo "bar2: var = $var"
88
}
99

1010
foo()
1111
{
12-
local var="foo_value"
12+
local var="foo_value"
1313

14-
echo "foo1: var = $var"
15-
bar
16-
echo "foo2: var = $var"
14+
echo "foo1: var = $var"
15+
bar
16+
echo "foo2: var = $var"
1717
}
1818

1919
echo "main1: var = $var"

0 commit comments

Comments
 (0)