Author: Didier Kryn Date: To: dng@lists.dyne.org Subject: Re: [DNG] findUUID?
Le 20/12/2025 à 16:31, Peter via Dng a écrit : > if [ findmnt -nrS UUID=$workingVolume ]; then
> echo "$workingVolume is not mounted"
> else
> echo "$workingVolume is mounted"
> fi
You should note that, for the shell, true==0 and false==1.
This is because the condition is usually tested on command return
codes with true meaning success.