Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
if [[ -n "${missing[@]}" ]]
then
echo "Missing packages: ${missing[@]}"
- if [[ $YES != "y" ]]
+ if [[ "$YES" = "n" ]]
+ then
+ return
+ elif [[ "$YES" != "y" ]]
then
echo "Do you want Raisin to automatically install them for you? (y/n)"
while read answer
}
function configure() {
- if [[ $YES != "y" ]]
+ if [[ "$YES" = "n" ]]
+ then
+ return
+ elif [[ "$YES" != "y" ]]
then
echo "Proceeding we'll make changes to the running system,"
echo "are you sure that you want to continue? (y/n)"
echo "where options are:"
echo " -v | --verbose Verbose"
echo " -y | --yes Do not ask questions and continue"
+ echo " -n | --no No to all questions"
echo "where commands are:"
echo " install-builddep Install build time dependencies (requires sudo)"
echo " build Build the components enabled in config"
# parameters check
export VERBOSE=0
-export YES="n"
+export YES=""
while [[ $# -gt 1 ]]
do
if [[ "$1" = "-v" || "$1" = "--verbose" ]]
then
YES="y"
shift 1
+ elif [[ "$1" = "-n" || "$1" = "--no" ]]
+ then
+ YES="n"
+ shift 1
else
_help
exit 1