diff --git a/mysqlbu-scripts.sh b/mysqlbu-scripts.sh index 3d857ea..aa0f88f 100755 --- a/mysqlbu-scripts.sh +++ b/mysqlbu-scripts.sh @@ -13,6 +13,7 @@ source /dev/stdin <<< "$(curl -sL https://git.schroedercity.com/voltron/Misc-Scr if [ $(id -u) != "0" ]; then echo "Sorry, I need root privileges!" + exit 1 fi MYSQLDATA="`grep --perl-regexp --only-match '(?<=datadir=).+' "$MYSQLCFG"`" @@ -40,7 +41,7 @@ MAIN_MENU() { do clear echo "" - echo -e " ${idsCL[LightGreen]}MySQL-BU - M y S Q L B A C K U P S C R I P T S${idsCL[Default]} ${idsCL[DarkGray]}(ver-${VERS})${idsCL[Default]}" + echo -e "${idsCL[LightGreen]} MySQL-BU - M y S Q L B A C K U P S C R I P T S${idsCL[Default]} ${idsCL[DarkGray]}(ver-${VERS})${idsCL[Default]}" echo -e "${idsCL[LightGreen]}---------------------------------------------------------------------------${idsCL[Default]}" echo -e "Backups Location: ${idsCL[LightBlue]}${BACKUP_PATH}${idsCL[Default]}" echo -e "MySQL User: ${idsCL[LightBlue]}${MYSQLUSER}${idsCL[Default]}"