Skip to content

Commit

Permalink
Minor update to defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankk2308 committed Jan 4, 2019
1 parent 2cda35f commit c71a001
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions set-eGPU.sh
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ set_app_pref() {
APP_PLIST="${FULL_APP_PATH}/Contents/Info.plist"
BUNDLE_ID="$($PlistBuddy -c "Print :CFBundleIdentifier" "${APP_PLIST}")"
defaults write "${BUNDLE_ID}" "${GPU_SELECTION_POLICY_KEY}" "${GPU_SELECTION_POLICY_VALUE}" 1>/dev/null 2>&1
defaults write "${BUNDLE_ID}" "${GPU_EJECT_POLICY_KEY}" "${GPU_EJECT_POLICY_VALUE}" 1>/dev/null 2>&1
return
fi
toggle_gpu_pref "${FULL_APP_PATH}" false
Expand All @@ -233,7 +232,6 @@ reset_app_pref() {
APP_PLIST="${FULL_APP_PATH}/Contents/Info.plist"
BUNDLE_ID="$($PlistBuddy -c "Print :CFBundleIdentifier" "${APP_PLIST}")"
defaults delete "${BUNDLE_ID}" "${GPU_SELECTION_POLICY_KEY}" 1>/dev/null 2>&1
defaults delete "${BUNDLE_ID}" "${GPU_EJECT_POLICY_KEY}" 1>/dev/null 2>&1
return
fi
toggle_gpu_pref "${FULL_APP_PATH}" true
Expand Down

0 comments on commit c71a001

Please sign in to comment.