Skip to content

Commit ba1c09c

Browse files
Moves to function_library.
1 parent 44cf6ff commit ba1c09c

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

01_install-setup.sh

+2-13
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
#!/bin/bash
2-
3-
# Get task status/result
4-
# get_status <task>
5-
function get_status ()
6-
{
7-
if [ $? -eq 0 ];
8-
then
9-
echo "$1 successfully completed."
10-
else
11-
echo "$1 failed..." >&2
12-
exit 1
13-
fi
14-
}
2+
# Source Library/Functions
3+
. ./function_library
154

165
# Enable UFW (default incoming:deny, outgoing:allow)
176
echo "Enabling UFW with default settings..."

function_library

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Get task status/result
2+
# get_status <task>
3+
4+
function get_status ()
5+
{
6+
if [ $? -eq 0 ];
7+
then
8+
echo "$1 successfully completed."
9+
else
10+
echo "$1 failed..." >&2
11+
exit 1
12+
fi
13+
}

0 commit comments

Comments
 (0)