Files
maas/tools/deployment/sleep.sh
Anselme, Schubert (sa246v) 024df3253f Add MAAS deployment gate
Change-Id: I240a098121c59157d60eef094a08c74220bf0056
Signed-off-by: Anselme, Schubert (sa246v) <sa246v@att.com>
2025-04-21 22:00:41 +00:00

17 lines
384 B
Bash
Executable File

#!/bin/bash
env_output=$(env)
# Loop through each line of the env output
while IFS= read -r line; do
# Extract the variable name and value
variable=$(echo "$line" | cut -d= -f1)
value=$(echo "$line" | cut -d= -f2-)
# Print the export command
echo "export $variable=\"$value\""
done <<< "$env_output"
echo "Sleeping.............."
while true; do sleep 10; done