Skip to content

Commit

Permalink
Merge pull request #132 from rmartine-ias/osx-added-plist
Browse files Browse the repository at this point in the history
Only add macOS .plist file if contents have changed
  • Loading branch information
bruno- authored Jan 20, 2024
2 parents 3e4bc35 + e8be48e commit 0698e8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/handle_tmux_automatic_start/osx_enable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ main() {
local tmux_start_script_path="${CURRENT_DIR}/osx_${strategy}_start_tmux.sh"

local launchd_plist_file_content="$(template "$tmux_start_script_path" "$fullscreen_option_value")"
echo "$launchd_plist_file_content" > "$osx_auto_start_file_path"
if ! diff "$osx_auto_start_file_path" <(echo "$launchd_plist_file_content") &>/dev/null ; then
echo "$launchd_plist_file_content" > "$osx_auto_start_file_path"
fi
}
main

0 comments on commit 0698e8f

Please sign in to comment.