improved chaining of programs in bash scripts

This commit is contained in:
aminnairi
2025-11-11 13:44:23 +01:00
parent fc9b2f1dcf
commit c8cea20981
9 changed files with 101 additions and 94 deletions
+4 -4
View File
@@ -1,6 +1,6 @@
#!/bin/bash
ensure_package_is_installed syncthing \
&& ensure_user_folder_present ~/.config/systemd/user \
&& synchronize_user_folder ./sources/syncthing/syncthing.service ~/.config/systemd/user \
&& ensure_user_service_active syncthing
ensure_package_is_installed syncthing &&
ensure_user_folder_present ~/.config/systemd/user &&
synchronize_user_folder ./sources/syncthing/syncthing.service ~/.config/systemd/user &&
ensure_user_service_active syncthing