File tree 5 files changed +19
-13
lines changed
5 files changed +19
-13
lines changed Original file line number Diff line number Diff line change 2
2
GotGet Common - Bash - Utilities
3
3
4
4
```
5
+ Install:
6
+
5
7
mkdir -pv ~/ggcom/
6
8
git clone https://github.com/LTGIV/ggcom-bash-library.git ~/ggcom/ggcom-bash-library/
7
9
git clone https://github.com/LTGIV/ggcom-bash-utils.git ~/ggcom/ggcom-bash-utils/
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
: << '!COMMENT '
3
3
4
- GGCOM - Bash - Utils - Cleaner v201507100702
4
+ GGCOM - Bash - Utils - Cleaner v201508012114
5
5
Louis T. Getterman IV (@LTGIV)
6
6
www.GotGetLLC.com | www.opensour.cc/ggcom/cleaner
7
7
94
94
# ----- NOTICE: HELP INFO
95
95
if [ " $valHelp " = True ]; then
96
96
read -r -d ' ' HELPMENU << EOF
97
- Usage: $SCRIPTNAME [OPTIONS]... ALGORITHM TARGET
98
- or $SCRIPTNAME [OPTIONS]
97
+ Usage: $SCRIPTNAME [OPTIONS]... (-p|--pattern)=PATTERN (-t|--target)=TARGET
99
98
100
99
Options
101
100
-t, --target target to hash (file or directory)
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
: << '!COMMENT '
3
3
4
- GGCOM - Bash - Utils - FMDMS (File Mtime Directory Md5 Synchronization) v201507060458
4
+ GGCOM - Bash - Utils - FMDMS (File Mtime Directory Md5 Synchronization) v201508012114
5
5
Louis T. Getterman IV (@LTGIV)
6
6
www.GotGetLLC.com | www.opensour.cc/ggcom/fmdms
7
7
@@ -532,7 +532,7 @@ while :; do
532
532
fi
533
533
534
534
# Changes within DIFF seconds have occurred.
535
- touch -d " - ${ DIFF} seconds " " $FMDMSSYNCTIME "
535
+ touch -t ` python -c " import datetime; print( ( datetime.datetime.now() - datetime.timedelta(seconds= $ DIFF) ).strftime('%Y%m%d%H%M.%S') ) " ` " $FMDMSSYNCTIME "
536
536
TMPCHANGES=` find " $ansrSrc " -type f -newer " $FMDMSSYNCTIME " `
537
537
538
538
if [ ! -z " $TMPCHANGES " ] || [ " $TRIGGERSYNC " == true ]; then
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
: << '!COMMENT '
3
3
4
- GGCOM Application Version Checker v201504162001
4
+ GGCOM Application Version Checker v201507120415
5
5
Louis T. Getterman IV (@LTGIV)
6
6
www.GotGetLLC.com | www.opensour.cc/ggcom/versions
7
7
@@ -26,13 +26,18 @@ source "${LIBPATH}/varsBash.bash"
26
26
source " ${LIBPATH} /string.bash"
27
27
source " ${LIBPATH} /version.bash"
28
28
# ###############################################################################
29
- #
29
+ source " ${LIBPATH} /colors.bash "
30
30
# ###############################################################################
31
31
32
32
GGCOMAPP=${1-$0 }
33
33
VERTYPE=${2-header}
34
34
35
35
# No such file
36
- if [ ! -f $GGCOMAPP ]; then echo " No such file ($GGCOMAPP ). Exiting." >&2 ; exit 1; fi
36
+ if [ ! -f $GGCOMAPP ]; then echo -e " ${ggcLightRed} No such file ($GGCOMAPP ). Exiting.${ggcNC} " >&2 ; exit 1; fi
37
37
38
- echo " ` getVersion " $GGCOMAPP " " $VERTYPE " ` "
38
+ OUTPUT=" ` getVersion " $GGCOMAPP " " $VERTYPE " ` "
39
+
40
+ # No version information found
41
+ if [ -z " ${OUTPUT} " ]; then echo -e " ${ggcLightRed} No version information found ($GGCOMAPP ). Exiting.${ggcNC} " >&2 ; exit 1; fi
42
+
43
+ echo " ${OUTPUT} "
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
: << '!COMMENT '
3
3
4
- GGCOM - Bash - Utils - Encode QR to SVG v201505201148
4
+ GGCOM - Bash - Utils - Encode QR to SVG v201508012114
5
5
Louis T. Getterman IV (@LTGIV)
6
6
www.GotGetLLC.com | www.opensour.cc/ggcom/qrsvg
7
7
@@ -59,9 +59,9 @@ echo `str_repeat - 80`
59
59
60
60
# ------------------------------ Support Programs Exist?
61
61
62
- hash qrencode 2> /dev/null || { echo -e " ${ggcLightRed} qrencode is not installed. Aborting .${ggcNC} " >&2 ; exit 1; }
63
- hash convert 2> /dev/null || { echo -e " ${ggcLightRed} convert is not installed. Aborting .${ggcNC} " >&2 ; exit 1; }
64
- hash potrace 2> /dev/null || { echo -e " ${ggcLightRed} potrace is not installed. Aborting .${ggcNC} " >&2 ; exit 1; }
62
+ hash qrencode 2> /dev/null || { echo -e " ${ggcLightRed} qrencode is not installed. Exiting .${ggcNC} " >&2 ; exit 1; }
63
+ hash convert 2> /dev/null || { echo -e " ${ggcLightRed} convert is not installed. Exiting .${ggcNC} " >&2 ; exit 1; }
64
+ hash potrace 2> /dev/null || { echo -e " ${ggcLightRed} potrace is not installed. Exiting .${ggcNC} " >&2 ; exit 1; }
65
65
66
66
# ------------------------------/Support Programs Exist?
67
67
You can’t perform that action at this time.
0 commit comments