aboutsummaryrefslogtreecommitdiff
path: root/lib/_ak_fs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/_ak_fs')
-rwxr-xr-xlib/_ak_fs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_ak_fs b/lib/_ak_fs
index fb493c3..10f4f17 100755
--- a/lib/_ak_fs
+++ b/lib/_ak_fs
@@ -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
}