File tree Expand file tree Collapse file tree 1 file changed +8
-20
lines changed Expand file tree Collapse file tree 1 file changed +8
-20
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
# ==HEADER==
4
+ # Title : Bashmultitool example.sh
5
+ # Description:
6
+ # A basic example file to show use of library shown in output screenshot
7
+ # Readme.md
8
+ # URL: https://github.com/gavinlyonsrepo/bashmultitool
4
9
5
- # name: Gavin Lyons
6
- # Title : Bashmultitool
7
- # Description: A Bash Shell library for commonly used functions
8
- # can be imported into shell scripts to create functional and colorful
9
- # scripts and Terminal users interfaces(TUI). This file is placeholder
10
- # for library with meta data
11
- # URL: https://github.com/gavinlyonsrepo/bashmultitool
12
-
10
+ # Source the library
13
11
LIBPATH=" /usr/lib/bashmultitool/"
14
12
for MYFILE in " $LIBPATH " * ;
15
13
do
16
14
source " $MYFILE "
17
15
done
18
-
19
- # === GLOBAL VARIABLES SETUP ===
20
-
21
- # === FUNCTIONS===
22
- # FUNCTION HEADER
23
- # NAME :
24
- # DESCRIPTION :
25
- # INPUTS :
26
- # PROCESS :
27
- # OUTPUT :
28
- # NOTES:
16
+
29
17
function Display_Func
30
18
{
31
19
bmtMiscFunc title 3 2 ' #' " Bashmultitool library Demo"
@@ -53,7 +41,7 @@ function Display_Func
53
41
bmtTimeFunc progressbar 1 &
54
42
pid=$!
55
43
disown
56
- sleep 25 # do stuff
44
+ sleep 25 # do here stuff
57
45
echo " "
58
46
bmtPromptFunc eventstatus " Log File uploaded" " OK" b_green
59
47
# Stop spin function with PID
You can’t perform that action at this time.
0 commit comments