aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-12-11 17:29:18 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-12-11 17:29:18 +0200
commitd12bf55e71eae4269abccbd78dd38c0b0c43ca58 (patch)
tree7cb4493b279e0841cc7295395b64e8e34e3e8579 /lib
parent1ed619ea8d747f15987c99db10243d54f9a93a39 (diff)
downloadarching-kaos-tools-d12bf55e71eae4269abccbd78dd38c0b0c43ca58.tar.gz
arching-kaos-tools-d12bf55e71eae4269abccbd78dd38c0b0c43ca58.tar.bz2
arching-kaos-tools-d12bf55e71eae4269abccbd78dd38c0b0c43ca58.zip
This should actually work
Diffstat (limited to 'lib')
-rwxr-xr-xlib/_ak_fs4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/_ak_fs b/lib/_ak_fs
index b65f34c..aa057cd 100755
--- a/lib/_ak_fs
+++ b/lib/_ak_fs
@@ -155,7 +155,7 @@ _ak_fs_import(){
# We get the SHA512 hash for the $FILE given
CHECKSUM=$(sha512sum "$FILE"|awk '{print $1}')
- FILE_SIZE="$( (du -b $FILE||du -A $FILE)2>/dev/null | awk '{ print $1 }')"
+ FILE_SIZE="$( (du -b $FILE||stat -f %z $FILE)2>/dev/null | awk '{ print $1 }')"
if [ $FILE_SIZE -lt 4097 ]
then
cp $FILE "$TECHDIR/$(basename "$FILE")-00000000000000000000000000000000000000000000000000.chk"
@@ -276,7 +276,7 @@ _ak_fs_find_depth(){
currentNode="$1"
#pathToNode="$AK_LEAFSDIR/$(_ak_fs_return_hash_path $currentNode)"
pathToNode="$AK_LEAFSDIR/$currentNode"
- if [ -f $pathToNode ] && [ "$( (du -b $pathToNode||du -A $pathToNode)2>/dev/null | awk '{print $1}')" == "258" ]
+ if [ -f $pathToNode ] && [ "$( (du -b $pathToNode||stat -f %z $pathToNode)2>/dev/null | awk '{print $1}')" == "258" ]
then
fileHead="$(head -n 1 $pathToNode)"
counter="$(expr $counter + 1)"