Merge pull request #1202 from LuaAndC/fix-gitkeep-in-readonly

mxe-conf: prevent touching a file in readonly dir
This commit is contained in:
Tony Theodore 2016-01-27 13:55:15 +11:00
commit f71727b404
1 changed files with 3 additions and 1 deletions

View File

@ -109,7 +109,9 @@ define $(PKG)_BUILD_$(BUILD)
#create readonly directory to force wine to fail
mkdir -p "$$WINEPREFIX"
[ -f "$$WINEPREFIX/.gitkeep"] || touch "$$WINEPREFIX/.gitkeep"
[ -f "$$WINEPREFIX/.gitkeep" ] \
|| chmod 0755 "$$WINEPREFIX" \
&& touch "$$WINEPREFIX/.gitkeep"
chmod 0555 "$$WINEPREFIX"
#create script "wine" in a directory which is in PATH