mirror of
https://github.com/tmux-plugins/tmux-continuum.git
synced 2024-12-22 15:48:50 +00:00
Style fixes
This commit is contained in:
parent
64a059996f
commit
0ad6174ec5
@ -55,22 +55,21 @@ systemd_unit_file() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
write_unit_file() {
|
write_unit_file() {
|
||||||
systemd_unit_file > "${systemd_unit_file_path}"
|
systemd_unit_file > "${systemd_unit_file_path}"
|
||||||
}
|
}
|
||||||
|
|
||||||
write_unit_file_unless_exists() {
|
write_unit_file_unless_exists() {
|
||||||
|
|
||||||
local systemd_unit_file_dir=$(dirname ${systemd_unit_file_path})
|
local systemd_unit_file_dir=$(dirname ${systemd_unit_file_path})
|
||||||
if ! [ -d $systemd_unit_file_dir ]; then
|
if ! [ -d $systemd_unit_file_dir ]; then
|
||||||
mkdir -p $systemd_unit_file_dir
|
mkdir -p $systemd_unit_file_dir
|
||||||
write_unit_file
|
write_unit_file
|
||||||
elif ! [ -e "${systemd_unit_file_path}" ]; then
|
elif ! [ -e "${systemd_unit_file_path}" ]; then
|
||||||
write_unit_file
|
write_unit_file
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
write_unit_file_unless_exists
|
write_unit_file_unless_exists
|
||||||
enable_tmux_unit_on_boot
|
enable_tmux_unit_on_boot
|
||||||
}
|
}
|
||||||
main
|
main
|
||||||
|
Loading…
Reference in New Issue
Block a user