1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jenkins_ynh.git synced 2024-09-03 19:26:18 +02:00
jenkins_ynh/scripts/_common.sh

41 lines
969 B
Bash
Raw Normal View History

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
2022-05-22 14:58:59 +02:00
PLUGIN_CLI_VERSION=2.9.3
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
#=================================================