Skip to content

Commit 064a798

Browse files
committed
Added bin/wrp ( wine run in prefix )
1 parent cb85713 commit 064a798

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

bin/wrp.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
if [ $# -lt 2 ]; then echo
4+
echo "Usage: $0 prefix cmd";
5+
exit 1
6+
fi
7+
8+
prefix=$1
9+
cmd=$2
10+
11+
if [ ! -e "${HOME}/.wines/${prefix}" ]; then
12+
echo "${HOME}/.wines/${prefix} does not exit"
13+
exit 2
14+
fi
15+
16+
WINEPREFIX="${HOME}/.wines/${prefix}" wine ${cmd}

0 commit comments

Comments
 (0)