diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-12-12 19:21:08 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-12-12 19:21:08 +0200 |
commit | 4d9759073ffb5f916eb4ae00c6c1ed78be9eb372 (patch) | |
tree | d651c7982113db427b9f00bcd6c5f846d4120c67 | |
parent | 6ee65131e241c486eb9ceb0f802bf704b463ebe9 (diff) | |
download | arching-kaos-tools-4d9759073ffb5f916eb4ae00c6c1ed78be9eb372.tar.gz arching-kaos-tools-4d9759073ffb5f916eb4ae00c6c1ed78be9eb372.tar.bz2 arching-kaos-tools-4d9759073ffb5f916eb4ae00c6c1ed78be9eb372.zip |
Fixing weird bug from tail program on FreeBSD
-rwxr-xr-x | lib/_ak_fs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -42,7 +42,7 @@ function _ak_fs_create_dir_for_hash(){ function _ak_fs_appendLastIfNotEven(){ if [ "$(( $(wc -l "$1" | awk '{ print $1 }') % 2))" -ne 0 ] then - tail -n 1 "$1" >> "$1" + head -n 1 "$1" >> "$1" fi } |