Well, I do not know exactly how the script works. I propose an idea, find out first mounted partitions and display the data later. df -l excluding tmpfs, for example, do that. I do not know programming, I'm too old for that but certainly with your magic you know how.
A query, how do I show the data with the session already started?