Skip to content
Snippets Groups Projects
Commit 3b8ca656 authored by Bob Mottram's avatar Bob Mottram
Browse files

Exit if directory change fails

parent fb57a564
No related branches found
No related tags found
No related merge requests found
......@@ -78,11 +78,11 @@ function image_install_elixir {
fi
{ echo '#!/bin/bash';
echo "cd $INSTALL_DIR";
echo "cd $INSTALL_DIR || exit 1";
echo "erlang_package=$erlang_package";
echo "wget https://packages.erlang-solutions.com/\$erlang_package";
echo "if [ ! -f \"\$INSTALL_DIR/\$erlang_package\" ]; then";
echo ' exit 1';
echo ' exit 2';
echo 'fi';
echo "dpkg -i \$erlang_package"; } > "$rootdir/usr/bin/install_elixir"
chmod +x "$rootdir/usr/bin/install_elixir"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment