View Single Post
Old 04-24-2012, 03:09 AM   #43
mSSM
Connoisseur? Addict!
mSSM plays well with othersmSSM plays well with othersmSSM plays well with othersmSSM plays well with othersmSSM plays well with othersmSSM plays well with othersmSSM plays well with othersmSSM plays well with othersmSSM plays well with othersmSSM plays well with othersmSSM plays well with others
 
Posts: 136
Karma: 2720
Join Date: Aug 2010
Location: Germany
Device: Onyx M92
Quote:
Originally Posted by kodomo View Post
You possibly would, if you were unsure whether the FS is mounted (or where) and you don't want to get the info about the wrong FS (but they obviously don't consider this in this place, or they would have at least quoted their variable, and written an if-statement :P)
You don't need to use an if-statement. 'df' returns a zero exit status if everything worked out correctly, and a non-zero exit-status if no FS was mounted.

And if you don't know where the FS is mounted, then what's the point of all this?
mSSM is offline   Reply With Quote