File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -43,15 +43,24 @@ if [[ "$fdroidFlag" == "fdroid" ]]; then
4343 if [ -n " $tmpdir " ]; then
4444 echo " true" > " $tmpdir /fdroid.bool"
4545 fi
46- cordova plugin remove com.foxdebug.acode.rk.exec.proot
46+
47+ # Remove only if installed
48+ if [ -d " plugins/com.foxdebug.acode.rk.exec.proot" ]; then
49+ cordova plugin remove com.foxdebug.acode.rk.exec.proot
50+ fi
4751else
4852 if [ -n " $tmpdir " ]; then
4953 echo " false" > " $tmpdir /fdroid.bool"
5054 fi
51- cordova plugin add src/plugins/proot/
55+
56+ # Add only if the src exists and not already installed
57+ if [ -d " src/plugins/proot" ] && [ ! -d " plugins/com.foxdebug.acode.rk.exec.proot" ]; then
58+ cordova plugin add src/plugins/proot/
59+ fi
5260fi
5361
5462
63+
5564# Normalize mode values
5665if [ " $mode " = " p" ] || [ " $mode " = " prod" ]
5766then
You can’t perform that action at this time.
0 commit comments