From b045bf9b879b36c972d1af9f233e67db33ff274e Mon Sep 17 00:00:00 2001 From: YZBruh Date: Mon, 4 Mar 2024 23:57:56 +0300 Subject: [PATCH] Add headers --- binary/backup.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/binary/backup.c b/binary/backup.c index 21d45ca..e038c6a 100644 --- a/binary/backup.c +++ b/binary/backup.c @@ -6,6 +6,7 @@ #include #include "include/common.h" +#include "include/tools.h" /* By YZBruh */ @@ -74,14 +75,18 @@ void backup(char *target_pt, char *pst) if (my_out != NULL) { if (out != NULL) { printf("%sSuccess. Output: %s/%s.img%s\n", ANSI_GREEN, my_out, out, ANSI_RESET); + exit(EXIT_SUCCESS); } else { printf("%sSuccess. Output: %s/%s.img%s\n", ANSI_GREEN, my_out, target_pt, ANSI_RESET); + exit(EXIT_SUCCESS); } } else { if (out != NULL) { printf("%sSuccess. Output: /storage/emulated/0/%s.img%s\n", ANSI_GREEN, out, ANSI_RESET); + exit(EXIT_SUCCESS); } else { printf("%sSuccess. Output: /storage/emulated/0/%s.img%s\n", ANSI_GREEN, target_pt, ANSI_RESET); + exit(EXIT_SUCCESS); } } }