Skip to content

Commit 382bceb

Browse files
committed
Ensures scripts will exit immediately if any command fails, preventing silent errors from going unnoticed
1 parent cbe0e81 commit 382bceb

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

policies/policy_ms_autoupdate.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@
44
# Licensed under MIT-style license (see LICENSE.txt file).
55
#
66

7+
set -e
8+
79
defaults write com.microsoft.autoupdate2 AcknowledgedDataCollectionPolicy -string RequiredDataOnly
810
defaults write com.microsoft.autoupdate2 SendAllTelemetryEnabled -bool false

policies/policy_ms_office.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# Licensed under MIT-style license (see LICENSE.txt file).
55
#
66

7+
set -e
8+
79
# Diagnostic and telemetry settings
810
defaults write com.microsoft.office DiagnosticDataTypePreference -string ZeroDiagnosticData
911
defaults write com.microsoft.office OptionalConnectedExperiencesPreference -bool false

policies/policy_ms_powerpoint.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# Licensed under MIT-style license (see LICENSE.txt file).
55
#
66

7+
set -e
8+
79
POWERPOINT_PREFERENCES="$HOME/Library/Containers/com.microsoft.Powerpoint/Data/Library/Preferences"
810

911
# Ensure the containerized preferences directory exists

scripts/dismiss_privacy_modal.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# Licensed under MIT-style license (see LICENSE.txt file).
55
#
66

7+
set -e
8+
79
echo "Waiting for PowerPoint privacy modals..."
810

911
close_microsoft_powerpoint_app() {

0 commit comments

Comments
 (0)