I was experiencing some issues with archey hanging for approx 10 seconds. I added set -x to the start of the script to see where the problem was, and this line was the cause.
Actually the df command was the problem - I have a SSHFS mount point that had 'gone away': this causes df to timeout after 10 seconds.
Clearly I could unmount it and the problem goes away, but maybe adding a / argument to the df command would make it a bit more robust, and then there's no need for the head -2 either.
Hi,
I was experiencing some issues with archey hanging for approx 10 seconds. I added
set -x
to the start of the script to see where the problem was, and this line was the cause.Actually the
df
command was the problem - I have a SSHFS mount point that had 'gone away': this causesdf
to timeout after 10 seconds.Clearly I could unmount it and the problem goes away, but maybe adding a
/
argument to thedf
command would make it a bit more robust, and then there's no need for thehead -2
either.e.g.
Happy to provide a PR if that suits?