Diff of /codesys-ide/codesys [220c38] .. [f5944f]  Maximize  Restore

Switch to unified view

a/codesys-ide/codesys b/codesys-ide/codesys
...
...
13
fi
13
fi
14
14
15
# get first CODESYS profile and start the script with it
15
# get first CODESYS profile and start the script with it
16
profile=$(basename "$(ls -1 ~/.wine.cds/drive_c/CODESYS/CODESYS/Profiles/*.profile | head -n 1 | sed 's,.profile,,')")
16
profile=$(basename "$(ls -1 ~/.wine.cds/drive_c/CODESYS/CODESYS/Profiles/*.profile | head -n 1 | sed 's,.profile,,')")
17
17
18
export DISPLAY=:90
18
export DISPLAY=:91
19
Xvfb :90 &
19
Xvfb :91 &
20
sleep 3
20
sleep 10
21
export WINEPREFIX=~/.wine.cds
21
export WINEPREFIX=~/.wine.cds
22
wine-development ~/.wine.cds/drive_c/CODESYS/CODESYS/Common/CODESYS.exe --culture=en --profile="'"${profile}"'" --runscript="z:${BASEPATH}/${1}.py" --noUI 
22
wine-development ~/.wine.cds/drive_c/CODESYS/CODESYS/Common/CODESYS.exe --culture=en --profile="'"${profile}"'" --runscript="z:${BASEPATH}/test.py" --noUI 
23
wine-development ~/.wine.cds/drive_c/CODESYS/CODESYS/Common/CODESYS.exe --culture=en --profile="'"${profile}"'" --runscript="z:${BASEPATH}/${1}.py"  --noUI
24
result=$?
25
23
killall Xvfb
26
killall Xvfb
24
27
rm /tmp/.X*
28
29
if [ "${result}" == "0" ]; then
30
    true
31
else
32
    false
33
fi
25
34