mirror of
https://github.com/YunoHost-Apps/jenkins_ynh.git
synced 2024-09-03 19:26:18 +02:00
31 lines
809 B
Bash
Executable file
31 lines
809 B
Bash
Executable file
#!/bin/bash
|
|
|
|
#=================================================
|
|
# COMMON VARIABLES
|
|
#=================================================
|
|
|
|
#=================================================
|
|
# PERSONAL HELPERS
|
|
#=================================================
|
|
|
|
#=================================================
|
|
# BOOLEAN CONVERTER
|
|
#=================================================
|
|
|
|
bool_to_01() {
|
|
declare -A bool01=([false]=0 [true]=1)
|
|
echo "${bool01[$1]}"
|
|
}
|
|
|
|
b01_to_bool() {
|
|
declare -A b01bool=([0]=false [1]=true)
|
|
echo "${b01bool[$1]}"
|
|
}
|
|
|
|
#=================================================
|
|
# EXPERIMENTAL HELPERS
|
|
#=================================================
|
|
|
|
#=================================================
|
|
# FUTURE OFFICIAL HELPERS
|
|
#=================================================
|