We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b041b9a + 95db705 commit 7ed127cCopy full SHA for 7ed127c
manage
@@ -857,12 +857,15 @@ function checkFolderPermissions() {
857
}
858
859
function setFolderReadWriteAll() {
860
- folder=${1}
861
- permissions=$(stat ${STAT_OPS} ${folder})
862
-
863
- if [[ "${permissions:0-1}" != 5 ]]; then
864
- echo "Setting ${folder} to read/write for all users ..."
865
- chmod a+rws ${folder}
+ # This has no impact on Windows. The chmod command will run but the permissions don't actually change.
+ if [[ "$OSTYPE" != "msys" ]]; then
+ folder=${1}
+ permissions=$(stat ${STAT_OPS} ${folder})
+
+ if [[ "${permissions:0-1}" != 7 ]]; then
866
+ echo "Setting ${folder} to read/write for all users ..."
867
+ chmod a+rws ${folder}
868
+ fi
869
fi
870
871
0 commit comments