1 2 3 4 5 6 7 8
echo "use sudo? [y/n]" read answer if [[ $answer == 'y' ]] then sudo="sudo" fi $sudo mariadb -u root < ./scripts/fast_populate.sql