Chcę sprawdzić, czy coś jest zamontowane lub nie /mnt/MyCloud. Próbowałem:
if mountpoint -q /mnt/MyCloud; thenif mountpoint -q "/mnt/MyCloud"; then- Edytować:
if mount | grep /mnt/MyCloud > /dev/null; then
Oboje idą do else (zwraca fałsz, chyba)
Jaki jest właściwy sposób sprawdzenia takiej rzeczy?