2016-11-30 17:45:05 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-12-03 18:46:01 +01:00
|
|
|
#=================================================
|
|
|
|
# COMMON VARIABLES
|
|
|
|
#=================================================
|
|
|
|
|
2021-02-25 23:05:04 +01:00
|
|
|
# dependencies used by the app
|
|
|
|
pkg_dependencies="openjdk-11-jdk daemon net-tools"
|
2020-12-03 18:46:01 +01:00
|
|
|
|
2019-05-28 00:28:01 +02:00
|
|
|
#=================================================
|
|
|
|
# PERSONAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
2018-09-30 11:50:17 +02:00
|
|
|
#=================================================
|
|
|
|
# BOOLEAN CONVERTER
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
bool_to_01 () {
|
|
|
|
local var="$1"
|
|
|
|
[ "$var" = "true" ] && var=1
|
|
|
|
[ "$var" = "false" ] && var=0
|
|
|
|
echo "$var"
|
|
|
|
}
|
|
|
|
|
|
|
|
bool_to_true_false () {
|
|
|
|
local var="$1"
|
|
|
|
[ "$var" = "1" ] && var=true
|
|
|
|
[ "$var" = "0" ] && var=false
|
|
|
|
echo "$var"
|
|
|
|
}
|
|
|
|
|
2019-01-30 15:56:18 +01:00
|
|
|
#=================================================
|
|
|
|
# EXPERIMENTAL HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
2017-12-05 19:30:08 +01:00
|
|
|
#=================================================
|
2021-02-25 23:05:04 +01:00
|
|
|
# FUTURE OFFICIAL HELPERS
|
2019-01-13 17:49:15 +01:00
|
|
|
#=================================================
|