diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-03-01 19:20:34 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-03-01 19:20:34 +0200 |
commit | 7affa2082f61455a413d0c8fea08e79935d4f308 (patch) | |
tree | 7efb39304c06b1c6e525a911308622818ef32d3b /bin/ak-sm-filesplitter | |
parent | cd43e57b999422980ea95df7f1d03117342e358e (diff) | |
download | arching-kaos-tools-7affa2082f61455a413d0c8fea08e79935d4f308.tar.gz arching-kaos-tools-7affa2082f61455a413d0c8fea08e79935d4f308.tar.bz2 arching-kaos-tools-7affa2082f61455a413d0c8fea08e79935d4f308.zip |
Spacing adjustment
Diffstat (limited to 'bin/ak-sm-filesplitter')
-rwxr-xr-x | bin/ak-sm-filesplitter | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/ak-sm-filesplitter b/bin/ak-sm-filesplitter index c675870..0d0ff30 100755 --- a/bin/ak-sm-filesplitter +++ b/bin/ak-sm-filesplitter @@ -1,7 +1,7 @@ #!/bin/bash # # The concept is simple -# +# # 1. For a given file we split in 1MB files inside a temporary directory # # 2. We then create a map file, containing the resulted files and their sha512sum @@ -17,7 +17,7 @@ # 6. We are done! # -# Uncomment next line if you want to debug +# Uncomment next line if you want to debug # set -xe PROGRAM="$(basename $0)" @@ -37,7 +37,7 @@ FILEMAPSDIR="$AK_WORKDIR/fmp/" TEMPORARYDIR="/tmp/tltmp" # A subdir to split the files there TECHDIR="/tmp/tltmp/chks/" -# A pin point to return from where we came from +# A pin point to return from where we came from CURRENTDIR="$(pwd)/" # Our snippet for logging debug info @@ -46,7 +46,7 @@ logit(){ } # Checking directories and create them if necessary - + # TECHDIR if [ ! -d "$TECHDIR" ] then @@ -107,7 +107,7 @@ split -b 1048576 --additional-suffix ".chk" -d "$FILE" "$TECHDIR$(basename "$FIL # We go over there... cd $TECHDIR -# We get every chunks' SHA512 and we craft a script to rename the chunks and +# We get every chunks' SHA512 and we craft a script to rename the chunks and # move them to CHKDIR sha512sum * > $TEMPORARYDIR/map; while IFS="" read -r p || [ -n "$p" ] do |