-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFAST.lib
More file actions
37 lines (33 loc) · 1.55 KB
/
FAST.lib
File metadata and controls
37 lines (33 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
#
############################################## FAST Library ##############################################
#
# Purpose: A functional library for resolving dysfunctional systems
# License: MIT
# Author: Forest Baker | forestsbaker | FSB -f
# Copyright 2015 Forest Baker
#
# Version: 1.0
# Date: 06/23/15
# Quote: Seagull Management - "A suit flies in, makes a lot of noise, craps on everything, and flies off"
#
############################################## FAST Library ###############################################
#
###
# Check some dependencies first
###
[ -f ./FAST*.* ] && clear || exit 1
[ -f ./Library_Sections/FAST*.lib ] && "Checking Dependencies" || { echo "Missing Library Sections";exit 1; }
[ -f ./Library_Sections/FAST_Here_Documents.lib ] && echo || { echo "FAST Library Section - Here Documents - is missing";exit 1; }
[ -r ./Library_Sections/FAST_Here_Documents.lib ] && . ./Library_Sections/FAST_Here_Documents.lib || { echo "FAST Library Section - Here Documents - is unreadable";exit 1; }
[ -f ./Library_Sections/FAST_Text_Format.lib ] && echo || { echo "FAST Library Section - Text Formatting - is missing";exit 1; }
[ -r ./Library_Sections/FAST_Text_Format.lib ] && . ./Library_Sections/FAST_Text_Format.lib || { echo "FAST Library Section - Text Formatting - is unreadable";exit 1; }
###
# Create GLOBAL_VARIABLES
###
readonly LIBRARY_NAME=$(basename $0)
readonly LIBRARY_CWD=$(readlink -m $(dirname $0))
readonly LIBRARY_ARGS="$@"
readonly OS_VERSION=$(lsb_release -sr)
readonly LIB_PID="$$"
readonly LIB_PID2="$BASHPID"