URI: 
       tuse head directly without cat in post-hooks - tomb - the crypto undertaker
  HTML git clone git://parazyd.org/tomb.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 101b89f0be65eaef53fab204ad9ce1d097aaf77f
   DIR parent fa44f46eba9ae89240942cbb184f944d0c54ac9f
  HTML Author: Jaromil <jaromil@dyne.org>
       Date:   Fri, 18 Nov 2016 13:55:48 +0100
       
       use head directly without cat in post-hooks
       
       less is more...
       
       Diffstat:
         M tomb                                |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
   DIR diff --git a/tomb b/tomb
       t@@ -1956,7 +1956,7 @@ exec_safe_post_hooks() {
            [[ -x $mnt/post-hooks ]] || return
        
            # If the file starts with a shebang, run it.
       -    cat $mnt/post-hooks | head -n1 | grep '^#!\s*/' &> /dev/null
       +    head -n1 $mnt/post-hooks | grep '^#!\s*/'
            [[ $? == 0 ]] && {
                _success "Post hooks found, executing as user ::1 user name::." $USERNAME
                $mnt/post-hooks $act $mnt