You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: macOS/Config/Disable creation of '.DS_Store' -files on network shares and removable drives/DisableCreationOfDS_StoreFilesOnNetworkSharesAndRemovableDrives.zsh
+2-2
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ fi
36
36
# Disable creation of ".DS_Store" -files on network shares
37
37
DisableDS_StoreFilesOnNetworkShares() {
38
38
echo"$(date) | Checking if creation of '.DS_Store' -files have been disabled on network shares for user $USER..."
39
-
if [[ "$statusnetworkshares"!="0" ]];then
39
+
if [[ "$statusnetworkshares"!="1" ]];then
40
40
echo"$(date) | Creation of '.DS_Store' -files have been enabled on network shares for user $USER. Disabling it..."
echo"$(date) | Creation of '.DS_Store' -files have been disabled on network shares for user $USER. This change will take effect the next time when you log in to your Mac-device. Let's continue..."
@@ -48,7 +48,7 @@ fi
48
48
# Disable creation of ".DS_Store" -files on removable drives
49
49
DisableDS_StoreFilesOnRemovableDrives() {
50
50
echo"$(date) | Checking if creation of '.DS_Store' -files have been disabled on removable drives for user $USER..."
51
-
if [[ "$statusremovabledrives"!="0" ]];then
51
+
if [[ "$statusremovabledrives"!="1" ]];then
52
52
echo"$(date) | Creation of '.DS_Store' -files have been enabled on removable drives for user $USER. Disabling it..."
echo"$(date) | Creation of '.DS_Store' -files have been disabled on removable drives for user $USER. This change will take effect the next time when you log in to your Mac-device. All done! Closing script..."
0 commit comments