Commit bd549d87 authored by HgO's avatar HgO

use array for install-sd.sh arguments, instead of quotes

parent 6e3455a3
......@@ -800,18 +800,18 @@ function flash_sd_card() {
download_install_sd_script
fi
local install_sd_options="-y '$HYPERCUBE_FILE' -f '$CUBE_RESOURCES_LOCATION/$image'"
local install_sd_options=(-y "$HYPERCUBE_FILE" -f $CUBE_RESOURCES_LOCATION/$image)
if $EXECUTE_CUSTOM_SCRIPT
then
install_sd_options="$install_sd_options -c '$CUSTOM_SCRIPT_PATH'"
install_sd_options+=(-c "$CUSTOM_SCRIPT_PATH")
fi
if [[ $LOG_LEVEL -eq ${LOG_LEVELS[DEBUG]} ]]
then
install_sd_options="$install_sd_options -d"
install_sd_options+=(-d)
fi
"./$CUBE_RESOURCES_LOCATION/$INSTALL_SD_SCRIPT_NAME" $install_sd_options
"./$CUBE_RESOURCES_LOCATION/$INSTALL_SD_SCRIPT_NAME" "${install_sd_options[@]}"
}
function prepare_cube() {
......
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