Skip to content

Commit

Permalink
adding prompt to test before install
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardofrantz committed Dec 15, 2023
1 parent 5dcb1d9 commit e4be6e6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,15 @@ then
fi

fpm clean
#fpm test --verbose --compiler "$FC" --flag "$FFLAGS" || { echo 'fpm test failed' ; exit 1; }
read -p "Do you want to run tests before installing? (y/n) " answer
case ${answer:0:1} in
y|Y )
fpm test --verbose --compiler "$FC" --flag "$FFLAGS" || { echo 'fpm test failed' ; exit 1; }
;;
* )
echo "Skipping tests..."
;;
esac
fpm install --verbose --compiler="$FC" --flag="$FFLAGS" || { echo 'fpm install failed' ; exit 1; }


Expand Down

0 comments on commit e4be6e6

Please sign in to comment.