diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-09-21 18:48:04 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-09-21 18:48:04 +0300 |
commit | a6a58c581559368f91d612220a1410ded50207fd (patch) | |
tree | d5d8f85fb2dea5d0a6df9e1cf55c8239adc90bd6 /lib/_ak_zchain | |
parent | dd662dccc2bf305318606c1cfb8df60f2cfcfce4 (diff) | |
download | arching-kaos-tools-a6a58c581559368f91d612220a1410ded50207fd.tar.gz arching-kaos-tools-a6a58c581559368f91d612220a1410ded50207fd.tar.bz2 arching-kaos-tools-a6a58c581559368f91d612220a1410ded50207fd.zip |
More debugging
Diffstat (limited to 'lib/_ak_zchain')
-rwxr-xr-x | lib/_ak_zchain | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/_ak_zchain b/lib/_ak_zchain index 3afe7b1..bb9c6b4 100755 --- a/lib/_ak_zchain +++ b/lib/_ak_zchain @@ -23,10 +23,12 @@ _ak_zchain_reset(){ _ak_log_error "Could not create directory /zarchive" exit 1 fi + else + _ak_log_info "/zarchive directory exists" fi _ak_log_info "Checking if /zlatest file exists" - _ak_ipfs_files_stat /zlatest > /dev/null + _ak_ipfs_files_stat /zlatest > /dev/null 2>&1 if [ $? -eq 0 ] then _ak_log_info "Archive the previous AK_ZLATEST" @@ -43,6 +45,8 @@ _ak_zchain_reset(){ _ak_log_error "Failed to remove /zlatest" exit 1 fi + else + _ak_log_info "/zlatest not found, skipping backup" fi _ak_log_info "Copying reset AK_ZLATEST" |