diff options
author | Leon | 2021-03-28 12:32:42 +0200 |
---|---|---|
committer | Leon | 2021-03-28 12:32:42 +0200 |
commit | e993e729a8fa942ecf5b970f0d1372faf10d3daa (patch) | |
tree | 89409c7396e3c54fdb3ebdc853c995b6f04599ef /install.sh | |
parent | ee66198dd753a44317ecbfec81cf90909195d606 (diff) | |
download | aur-e993e729a8fa942ecf5b970f0d1372faf10d3daa.tar.gz |
Update to 5.x
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/install.sh b/install.sh index 03dd52470cd1..f0266b28d7e0 100755 --- a/install.sh +++ b/install.sh @@ -27,10 +27,10 @@ check_postgres() { } check_mugen() { - if [ -f "/opt/karaokemugen/karaokemugen" ]; then - echo -e "${_COL_GREEN_}Karaoke Mugen is installed in /opt/karaokemugen." + if [ -f "/usr/lib/karaokemugen/asar/app.asar" ]; then + echo -e "${_COL_GREEN_}Karaoke Mugen is installed in /usr/lib/karaokemugen." else - echo -e "${_COL_BRED_}Karaoke Mugen is not installed in /opt/karaokemugen. Exiting." + echo -e "${_COL_BRED_}Karaoke Mugen is not installed in /usr/lib/karaokemugen. Exiting." exit 1 fi } @@ -68,23 +68,6 @@ if [[ $(which tput > /dev/null 2>&1 && tput -T "${TERM}" colors || echo -n '0') _BEGIN_="${_COL_BRED_}-> ${_COL_BBLUE_}" fi -while getopts ":g" opt; do - case ${opt} in - g ) - #target=$OPTARG - echo -e "${_COL_YELLOW_}You may have to enter your sudo password" - add_user_to_group - echo -e "${_BEGIN_}Done! You need to restart your session to apply these changes." - exit 0 - ;; - \? ) - echo "Invalid option: $OPTARG" 1>&2 - exit 1 - ;; - esac -done -shift $((OPTIND -1)) - echo -e "${_BEGIN_}Welcome to the Karaoke Mugen installer!" echo -e "${_COL_YELLOW_}⚠️ You may have to enter your sudo password a couple times during this installation." echo -e "${_COL_YELLOW_}This script may not work if you tweaked your PostgreSQL configuration." |