Commit ab032d0d authored by Mattia Rizzolo's avatar Mattia Rizzolo

what started as a function turned into a subshell

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mapreri@ubuntu.com>
parent 1649a5de
...@@ -17,7 +17,7 @@ run_script() ( ...@@ -17,7 +17,7 @@ run_script() (
fi fi
# Create a temporary build directory # Create a temporary build directory
build_dir="$(mktemp -d deploy-XXXXXXXXX -p /tmp)" build_dir="$(mktemp -d deploy-XXXXXXXXX -p /tmp)"
trap 'rm -rfv "$build_dir"' RETURN trap 'rm -rfv "$build_dir"' EXIT
# Switch to the temporary build directory # Switch to the temporary build directory
cd "${build_dir}" cd "${build_dir}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment