You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [[ -L"$LINUX_POWERDEVS"&&-d"$LINUX_POWERDEVS" ]]
24
+
then
25
+
echo"Removing previous symbolic link to Windows user folder"
26
+
rm $LINUX_POWERDEVS
27
+
fi
28
+
29
+
if [ -d"$LINUX_POWERDEVS" ]
30
+
then
31
+
mv $LINUX_POWERDEVS$LINUX_POWERDEVS_TMP
32
+
fi
33
+
34
+
mkdir -p $WINDOWS_POWERDEVS
35
+
36
+
ln -s $WINDOWS_POWERDEVS/ $LINUX_POWERDEVS
37
+
ln -s $WINDOWS_USER_FOLDER/ ~/$WINDOWS_USER
38
+
ln -s /mnt/c/ ~/C
39
+
40
+
if [ -d"$LINUX_POWERDEVS_TMP" ]
41
+
then
42
+
cp -r $LINUX_POWERDEVS_TMP/*$LINUX_POWERDEVS/
43
+
rm -rf $LINUX_POWERDEVS_TMP
44
+
fi
45
+
46
+
echo"Installing PowerDEVS..."
47
+
cp -a /opt/powerdevs $HOME/powerdevs
48
+
rm $HOME/powerdevs/bin/run.sh
49
+
cd$HOME/powerdevs/bin
50
+
./pdme
51
+
else
52
+
VEROPT=`cat /opt/powerdevs/version`
53
+
VERHOME=`cat $HOME/powerdevs/version`
54
+
if [ "$VEROPT"=="$VERHOME" ];
55
+
then
56
+
# Previous instalation and same version
57
+
cd$HOME/powerdevs/bin
58
+
./pdme
59
+
else
60
+
# Previous instalation and different version
61
+
OW=`zenity --question --text "There is a different version of PowerDEVS on your home folder (ver. $VERHOME). Do you wish to overwrite it with ver. $VEROPT?\nNOTE: you will not lose your models.";echo$?`
0 commit comments