Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ "$1" != '' ]; then
- if [ -e ~/.wine-$1 ]; then
- if [ `cat ~/.wineprefix | cut -d \/ -f 4 | cut -d - -f 2` != $1 ]; then
- echo "WINEPREFIX set to ~/.wine-$1"
- echo export WINEPREFIX=~/.wine-$1 > ~/.wineprefix
- exec bash
- else
- echo "WINEPREFIX is already pointing to the correct directory."
- fi
- else
- echo "Not a valid WINEPREFIX."
- fi
- else
- echo "File - ~/.wine-`cat ~/.wineprefix | cut -d \/ -f 4 | cut -d - -f 2`"
- echo "Env - ~/.wine-`echo $WINEPREFIX | cut -d - -f 2`"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement