Commit a5987e1d authored by Mattia Rizzolo's avatar Mattia Rizzolo

support running scripts specified on the command

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mapreri@ubuntu.com>
parent 01a85736
...@@ -44,7 +44,14 @@ run_script() ( ...@@ -44,7 +44,14 @@ run_script() (
) )
if [ $# -ne 0 ]; then
for i in "$@"; do
script="$base/$i"
run_script "$script"
done
else
# Try to deploy all the websites # Try to deploy all the websites
for script in "${base}/scripts/"*; do for script in "${base}/scripts/"*; do
run_script "$script" run_script "$script"
done done
fi
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