Added anti-redefinition headers to library scripts.
This commit is contained in:
parent
e544afc674
commit
39afb4c8b7
|
@ -1,6 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
ArrayUtilsVersion="1.0"
|
||||
if [ "$ArrayUtilsVersion" ]; then return 0; fi
|
||||
readonly ArrayUtilsVersion="1.0"
|
||||
|
||||
# Due to the fact we're passing arrays via indirection,
|
||||
# we've got to mangle variable names used within array
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
SandboxUtilsVersion="1.0"
|
||||
if [ "$ColorUtilsVersion" ]; then return 0; fi
|
||||
readonly ColorUtilsVersion="1.0"
|
||||
|
||||
################################# < Shell Color Codes > ################################
|
||||
readonly CRed="\e[1;31m"
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ "$FormatUtilsVersion" ]; then return 0; fi
|
||||
readonly FormatUtilsVersion="1.0"
|
||||
|
||||
FormatTabLength=8
|
||||
FormatValidSpecifiers='%([+-]?([0-9]+|\*)?(\.([0-9]+|\*))?)?[bqdiouxXfeEgGcsnaA]'
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
HashUtilsVersion="1.0"
|
||||
if [ "$HashUtilsVersion" ]; then return 0; fi
|
||||
readonly HashUtilsVersion="1.0"
|
||||
|
||||
HashOutputDevice="/dev/stdout"
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
IOUtilsVersion="1.0"
|
||||
if [ "$IOUtilsVersion" ]; then return 0; fi
|
||||
readonly IOUtilsVersion="1.0"
|
||||
|
||||
IOUtilsHeader="[x] ================================ [x]"
|
||||
IOUtilsQueryMark="[-] "
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ "$InterfaceUtilsVersion" ]; then return 0; fi
|
||||
readonly InterfaceUtilsVersion="1.0"
|
||||
|
||||
# The methods used in this script are taken from airmon-ng.
|
||||
# This is all thanks for the airmon-ng authors, thanks guys.
|
||||
|
||||
InterfaceUtilsOutputDevice="/dev/stdout"
|
||||
|
||||
if [ -d /sys/bus/usb ] # && hash lsusb
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
SandboxUtilsVersion="1.0"
|
||||
if [ "$SandboxUtilsVersion" ]; then return 0; fi
|
||||
readonly SandboxUtilsVersion="1.0"
|
||||
|
||||
SandboxWorkspacePath="/tmp/sandbox"
|
||||
SandboxOutputDevice="/dev/stdout"
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ "$APServiceVersion" ]; then return 0; fi
|
||||
readonly APServiceVersion="1.0"
|
||||
|
||||
VIGW="at0"
|
||||
VIAP=$WIAccessPoint
|
||||
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ "$APServiceVersion" ]; then return 0; fi
|
||||
readonly APServiceVersion="1.0"
|
||||
|
||||
VIGW=$WIAccessPoint
|
||||
VIAP=$WIAccessPoint
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
#if [ "$InstallerUtilsVersion" ]; then return 0; fi
|
||||
# readonly InstallerUtilsVersion="1.0"
|
||||
if [ "$InstallerUtilsVersion" ]; then return 0; fi
|
||||
readonly InstallerUtilsVersion="1.0"
|
||||
|
||||
InstallerUtilsWorkspacePath="/tmp/verspace"
|
||||
|
||||
|
|
Loading…
Reference in New Issue