download_and_compile.sh: add missing quoting
This is needed because $answer will be empty in case the default $2 is empty and the user hits Enter at the prompt.
This commit is contained in:
parent
420034d5b5
commit
00710497b0
@ -125,7 +125,7 @@ function _yes_no_quit_prompt(){
|
|||||||
answer="$default"
|
answer="$default"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case $answer in
|
case "$answer" in
|
||||||
[yY]) res=0; break ;;
|
[yY]) res=0; break ;;
|
||||||
[nN]) res=1; break ;;
|
[nN]) res=1; break ;;
|
||||||
[qQ]) res=2; break ;;
|
[qQ]) res=2; break ;;
|
||||||
@ -1196,11 +1196,11 @@ if _elementIn "FGFS" "${WHATTOBUILD[@]}" || \
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
cd "$CBD"
|
cd "$CBD"
|
||||||
|
|
||||||
paths="../../$SIMGEAR_INSTALL_DIR/lib:../../$OSG_INSTALL_DIR/lib:../../$OPENRTI_INSTALL_DIR/lib:../../$PLIB_INSTALL_DIR/lib"
|
paths="../../$SIMGEAR_INSTALL_DIR/lib:../../$OSG_INSTALL_DIR/lib:../../$OPENRTI_INSTALL_DIR/lib:../../$PLIB_INSTALL_DIR/lib"
|
||||||
gdb="gdb"
|
gdb="gdb"
|
||||||
set_ld_library_path="export LD_LIBRARY_PATH='$paths'\"\${LD_LIBRARY_PATH:+:}\${LD_LIBRARY_PATH}\""
|
set_ld_library_path="export LD_LIBRARY_PATH='$paths'\"\${LD_LIBRARY_PATH:+:}\${LD_LIBRARY_PATH}\""
|
||||||
|
|
||||||
common=""
|
common=""
|
||||||
common="${common}#!/bin/sh\n"
|
common="${common}#!/bin/sh\n"
|
||||||
common="${common}cd \"\$(dirname \"\$0\")\"\n"
|
common="${common}cd \"\$(dirname \"\$0\")\"\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user