diff --git a/scripts/_common.sh b/scripts/_common.sh index b099366..accdd9b 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -1,24 +1,7 @@ #!/bin/bash -#================================================= -# COMMON VARIABLES -#================================================= - GO_VERSION="1.19" -#================================================= -# PERSONAL HELPERS -#================================================= - -#================================================= -# EXPERIMENTAL HELPERS -#================================================= - -#================================================= -# FUTURE OFFICIAL HELPERS -#================================================= - - ynh_go_try_bash_extension() { if [ -x src/configure ]; then src/configure && make -C src || { @@ -49,7 +32,7 @@ export GOENV_ROOT="$goenv_install_dir" # However, $PATH is duplicated into $go_path to outlast any manipulation of $PATH # You can use the variable `$ynh_go_load_path` to quickly load your Go version # in $PATH for an usage into a separate script. -# Exemple: $ynh_go_load_path $final_path/script_that_use_gem.sh` +# Exemple: $ynh_go_load_path $install_dir/script_that_use_gem.sh` # # # Finally, to start a Go service with the correct version, 2 solutions @@ -91,7 +74,7 @@ ynh_use_go () { ynh_go_load_path="PATH=$PATH" # Sets the local application-specific Go version - pushd $final_path + pushd $install_dir $goenv_install_dir/bin/goenv local $go_version popd }