File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
Packages/com.benoitfreslon.vibration Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -103,13 +103,17 @@ renameInvalidDirs() {
103103 chmod -R 777 " $PKG_ROOT /"
104104
105105 # Rename UPM special directories with suffix "~"
106- if [ -d " $PKG_ROOT /Samples" ] && [ ! -d " $PKG_ROOT /Samples~ " ]
106+ if [ -d " $PKG_ROOT /Samples" ]
107107 then
108108 # PS: Replaced "mv" to "copy" + "remove" of Samples~ dir, because sometimes
109109 # shows the error Permission Denied. Specially if Samples
110- # have several sub-directories
111- mkdir -p " $PKG_ROOT /Samples~"
112- cp -R " $PKG_ROOT /Samples/." " $PKG_ROOT /Samples~/"
110+ # have several sub-directories
111+ if [ ! -d " $PKG_ROOT /Samples~" ]
112+ then
113+ mkdir -p " $PKG_ROOT /Samples~"
114+ fi
115+
116+ cp -Rf " $PKG_ROOT /Samples/." " $PKG_ROOT /Samples~/"
113117
114118 rm -rf " $PKG_ROOT /Samples"
115119 rm -f " $PKG_ROOT /Samples.meta"
Original file line number Diff line number Diff line change 44 "displayName" : " Vibration" ,
55 "description" : " Native free plugin for Unity for Android, iOS and WebGL. Use custom vibrations/haptics on mobile." ,
66 "unity" : " 2019.3" ,
7- "version" : " 0.1.9 " ,
7+ "version" : " 0.1.10 " ,
88 "keywords" : [],
99 "devDependencies" : {
1010 "cross-var" : " ^1.1.0" ,
You can’t perform that action at this time.
0 commit comments