−printenv
All checks were successful
/ job (push) Successful in 7m40s

This commit is contained in:
Marc Beninca 2024-07-29 12:51:46 +02:00
parent 07578c896b
commit 8c5ada3f94
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

14
spcd.sh
View file

@ -12,7 +12,6 @@
# main
spcd_main() {
spcd_list_environment_variables
spcd_set_environment_variables
#
spcd_list_working_directory
@ -41,19 +40,6 @@ spcd_main() {
# steps
spcd_list_environment_variables() {
spcd_step "List environment variables"
for spcd_lev__name in $(printenv | cut -d = -f 1 | sort); do
if [ "${spcd_lev__name}" != "SPCD_SSH_KEY" ]; then
spcd_lev__text=
eval "spcd_lev__text=\"\${${spcd_lev__name}}\""
echo "${spcd_lev__name}=${spcd_lev__text}"
else
echo "${spcd_lev__name}"
fi
done
}
spcd_set_environment_variables() {
spcd_step "Set environment variables"
# continuous integration / github → gitea → forgejo