mirror of
https://github.com/tmux-plugins/tmux-continuum.git
synced 2024-10-31 20:58:47 +00:00
Merge pull request #132 from rmartine-ias/osx-added-plist
Only add macOS .plist file if contents have changed
This commit is contained in:
commit
0698e8f4b1
@ -65,6 +65,8 @@ main() {
|
|||||||
local tmux_start_script_path="${CURRENT_DIR}/osx_${strategy}_start_tmux.sh"
|
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")"
|
local launchd_plist_file_content="$(template "$tmux_start_script_path" "$fullscreen_option_value")"
|
||||||
|
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"
|
echo "$launchd_plist_file_content" > "$osx_auto_start_file_path"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
main
|
main
|
||||||
|
Loading…
Reference in New Issue
Block a user