[go: up one dir, main page]

Menu

[r107]: / emboss.sh  Maximize  Restore  History

Download this file

27 lines (26 with data), 477 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
C1=`which gnome-terminal`
C2=`which xterm`
C3=`which rxvtl`
C4=`which kterm`
echo "0" > /tmp/embossInstall.err
MTERM=''
if [ C1 ]; then
MTERM=$C1" -x "
elif (( C2 )); then
MTERM=$C2" -e "
elif (( C3 )); then
MTERM=$C3" -e "
else
MTERM=$C4" -e "
fi
cd $1
echo 'Launch install script'
COMM=$MTERM''$1'/embossInstall.sh '$1
echo $COMM
gksudo "$COMM"
err=`cat /tmp/embossInstall.err`
if [ "$err" -ne "0" ]; then
echo "Failed $err"
exit $err
fi