Browse Source

style: use shfmt to format upstall

pull/9537/head
sinanmohd 2 months ago
parent
commit
ec578a824a
  1. 6
      docker-compose/1_Auto_Upstall/noco.sh

6
docker-compose/1_Auto_Upstall/noco.sh

@ -83,7 +83,7 @@ urlencode() {
c=${string:$pos:1}
case "$c" in
[-_.~a-zA-Z0-9]) o="$c" ;;
* ) printf -v o '%%%02X' "'$c"
*) printf -v o '%%%02X' "'$c" ;;
esac
encoded+="$o"
done
@ -154,7 +154,6 @@ get_nproc() {
fi
}
prompt() {
local prompt_text="$1"
local default_value="$2"
@ -298,7 +297,6 @@ add_to_hosts() {
local HOSTS_FILE="/etc/hosts"
local TEMP_HOSTS_FILE="/tmp/hosts.tmp"
if is_valid_domain $CONFIG_MINIO_DOMAIN_NAME; then
return 0
elif sudo grep -q "${CONFIG_MINIO_DOMAIN_NAME}" "$HOSTS_FILE"; then
@ -529,7 +527,6 @@ create_docker_compose_file() {
image="nocodb/nocodb:latest"
fi
# for easier string interpolation
if [ "${CONFIG_REDIS_ENABLED}" = "Y" ]; then
gen_redis=1
@ -981,7 +978,6 @@ monitoring_service() {
$CONFIG_DOCKER_COMMAND stats
}
main() {
CONFIG_DOCKER_COMMAND=$([ "$(check_for_docker_sudo)" = "y" ] && echo "sudo docker" || echo "docker")

Loading…
Cancel
Save