projects
/
EVA-2020-02.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5c65ffa
)
fix(exec/bklog):Fix --no-store-raw option
author
Steven Baltakatei Sandoval
<baltakatei@gmail.com>
Thu, 8 Oct 2020 00:56:05 +0000
(
00:56
+0000)
committer
Steven Baltakatei Sandoval
<baltakatei@gmail.com>
Thu, 8 Oct 2020 00:56:05 +0000
(
00:56
+0000)
Removed extra `shift`.
exec/bklog
patch
|
blob
|
blame
|
history
diff --git
a/exec/bklog
b/exec/bklog
index e0bb57fc66b58bbfe8d1d4e515c4d475cf58f2b3..3af241488889f314c417f860a118acf3f01a8c83 100644
(file)
--- a/
exec/bklog
+++ b/
exec/bklog
@@
-11,7
+11,7
@@
dirTmpDefault="/dev/shm"; # Default parent of working directory
# Script Metadata
scriptName="bklog"; # Define basename of script file.
# Script Metadata
scriptName="bklog"; # Define basename of script file.
-scriptVersion="0.1.3
0
"; # Define version of script.
+scriptVersion="0.1.3
1
"; # Define version of script.
scriptURL="https://gitlab.com/baltakatei/ninfacyzga-01"; # Define website hosting this script.
scriptTimeStartEpoch="$(date +%s)"; # Save start time of script in epoch seconds
scriptTimeStart="$(date +%Y%m%dT%H%M%S.%N)"; # YYYYmmddTHHMMSS.NNNNNNNNN
scriptURL="https://gitlab.com/baltakatei/ninfacyzga-01"; # Define website hosting this script.
scriptTimeStartEpoch="$(date +%s)"; # Save start time of script in epoch seconds
scriptTimeStart="$(date +%Y%m%dT%H%M%S.%N)"; # YYYYmmddTHHMMSS.NNNNNNNNN
@@
-58,7
+58,7
@@
processArguments() {
-p | --process-string) optionProcString="true" && argProcStrings+=("$2") && argProcFileExts+=("$3") && vbm "STATUS:file extension \"$3\" for output of processing string added:\"$2\""; shift; shift;;
-l | --label) optionLabel="true" && argLabel="$2"; vbm "DEBUG :Custom label received:$argLabel"; shift;;
-w | --store-raw) optionStoreRaw="true" && argRawFileExt="$2"; vbm "DEBUG :Raw stdin file extension received:$argRawFileExt"; shift;;
-p | --process-string) optionProcString="true" && argProcStrings+=("$2") && argProcFileExts+=("$3") && vbm "STATUS:file extension \"$3\" for output of processing string added:\"$2\""; shift; shift;;
-l | --label) optionLabel="true" && argLabel="$2"; vbm "DEBUG :Custom label received:$argLabel"; shift;;
-w | --store-raw) optionStoreRaw="true" && argRawFileExt="$2"; vbm "DEBUG :Raw stdin file extension received:$argRawFileExt"; shift;;
- -W | --no-store-raw) optionNoStoreRaw="true"; vbm "DEBUG :Option selected to not store raw stdin data.";
shift;;
+ -W | --no-store-raw) optionNoStoreRaw="true"; vbm "DEBUG :Option selected to not store raw stdin data.";
*) yell "ERROR: Unrecognized argument: $1"; yell "STATUS:All arguments:$*"; exit 1;; # Handle unrecognized options.
esac
shift
*) yell "ERROR: Unrecognized argument: $1"; yell "STATUS:All arguments:$*"; exit 1;; # Handle unrecognized options.
esac
shift