This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function stateMachine.push() { # Pushes the given value into the stack. | |
: ${1? 'Missing attribute name'} # Error status for missing attribute name. | |
: ${2? 'Missing values(s) to push'} # Error status for missing value. | |
local attribute="${1^^}"; # Function's local variables | |
local value="${2^^}"; # | |
local arrayName="STATE_MACHINE_${attribute}" # | |
if [[ $( stateMachine.exist "$arrayName" ) == 0 ]]; then | |
eval "${arrayName}+=(${value})"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |