Skip to content

Commit f213497

Browse files
example file update
1 parent 6024f32 commit f213497

File tree

1 file changed

+8
-20
lines changed

1 file changed

+8
-20
lines changed

example/example.sh

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,19 @@
11
#!/bin/bash
22

33
#==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
49

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
1311
LIBPATH="/usr/lib/bashmultitool/"
1412
for MYFILE in "$LIBPATH"*;
1513
do
1614
source "$MYFILE"
1715
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+
2917
function Display_Func
3018
{
3119
bmtMiscFunc title 3 2 '#' "Bashmultitool library Demo"
@@ -53,7 +41,7 @@ function Display_Func
5341
bmtTimeFunc progressbar 1 &
5442
pid=$!
5543
disown
56-
sleep 25 #do stuff
44+
sleep 25 # do here stuff
5745
echo " "
5846
bmtPromptFunc eventstatus "Log File uploaded" "OK" b_green
5947
# Stop spin function with PID

0 commit comments

Comments
 (0)