Compare commits
1 Commits
v1.0-stabl
...
v1.1-stabl
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
95cc61fd4d |
@@ -1,6 +1,6 @@
|
|||||||
# zOTP Bash - Generates/Tests One Time Pins in Bash Scripts
|
# zOTP Bash - Generates/Tests One Time Pins in Bash Scripts
|
||||||
|
|
||||||
- Current Version : 1.0
|
- Current Version : 1.1
|
||||||
- Author : Ze'ev Schurmann
|
- Author : Ze'ev Schurmann
|
||||||
- Git Repo : https://git.3volve.net.za/thisiszeev/zotp-bash
|
- Git Repo : https://git.3volve.net.za/thisiszeev/zotp-bash
|
||||||
- Reddit : u/thisiszeev
|
- Reddit : u/thisiszeev
|
||||||
|
|||||||
10
zotp.inc.sh
10
zotp.inc.sh
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
## zOTP Bash - Generates/Tests One Time Pins in Bash Scripts
|
## zOTP Bash - Generates/Tests One Time Pins in Bash Scripts
|
||||||
## Version : 1.0
|
## Version : 1.1
|
||||||
## Author : Ze'ev Schurmann
|
## Author : Ze'ev Schurmann
|
||||||
## Git Repo : https://git.3volve.net.za/thisiszeev/zotp-bash
|
## Git Repo : https://git.3volve.net.za/thisiszeev/zotp-bash
|
||||||
## Reddit : u/thisiszeev
|
## Reddit : u/thisiszeev
|
||||||
@@ -133,13 +133,13 @@ function genHash {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "${precmd}" ]] && [[ -z "${postcmd}" ]]; then
|
if [[ -z "${precmd}" ]] && [[ -z "${postcmd}" ]]; then
|
||||||
echo -e "${1}" | ${hashcmd}
|
echo -en "${1}" | ${hashcmd}
|
||||||
elif [[ -z "${precmd}" ]] && [[ -n "${postcmd}" ]]; then
|
elif [[ -z "${precmd}" ]] && [[ -n "${postcmd}" ]]; then
|
||||||
echo -e "${1}" | ${hashcmd} | ${postcmd}
|
echo -en "${1}" | ${hashcmd} | ${postcmd}
|
||||||
elif [[ -n "${precmd}" ]] && [[ -z "${postcmd}" ]]; then
|
elif [[ -n "${precmd}" ]] && [[ -z "${postcmd}" ]]; then
|
||||||
echo -e "${1}" | ${precmd} | ${hashcmd}
|
echo -en "${1}" | ${precmd} | ${hashcmd}
|
||||||
elif [[ -n "${precmd}" ]] && [[ -n "${postcmd}" ]]; then
|
elif [[ -n "${precmd}" ]] && [[ -n "${postcmd}" ]]; then
|
||||||
echo -e "${1}" | ${precmd} | ${hashcmd} | ${postcmd}
|
echo -en "${1}" | ${precmd} | ${hashcmd} | ${postcmd}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in New Issue
Block a user