Skip to content

Commit

Permalink
linuxmint#365 refactor shell test
Browse files Browse the repository at this point in the history
Co-authored-by: Yannis Gerlach <[email protected]>
  • Loading branch information
mwoz123 and ygerlach authored Jan 6, 2025
1 parent a353546 commit f90902a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Core/Main.vala
Original file line number Diff line number Diff line change
Expand Up @@ -1696,9 +1696,8 @@ public class Main : GLib.Object{
// Perform any post-backup actions
log_debug("Running post-backup tasks...");

string sh = "if [ -d \"/etc/timeshift/backup-hooks.d\" ]; then \n";
sh += " run-parts --verbose /etc/timeshift/backup-hooks.d \n";
sh += "fi \n";
string sh = "test -d \"/etc/timeshift/backup-hooks.d\" &&"
" run-parts --verbose /etc/timeshift/backup-hooks.d";
exec_script_sync(sh, null, null, false, false, false, true);

log_debug("Finished running post-backup tasks...");
Expand Down

0 comments on commit f90902a

Please sign in to comment.