Skip to content

Commit

Permalink
Update 00-smb_mounts.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored Dec 13, 2023
1 parent 8fbcb78 commit 4c7a570
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .templates/00-smb_mounts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ test_mount () {
MOUNTED=false
ERROR_MOUNT=false

# Test mounted
if mountpoint -q /mnt/"$diskname"; then
# Exit if not mounted
if ! mountpoint -q /mnt/"$diskname"; then
return 0
fi

# Test for serverino
# Exit if can't write
# shellcheck disable=SC2015
mkdir "/mnt/$diskname/testaze" && touch "/mnt/$diskname/testaze/testaze" && rm -r "/mnt/$diskname/testaze" || ERROR_MOUNT=true
if [[ "$ERROR_MOUNT" == "true" ]]; then
Expand Down

0 comments on commit 4c7a570

Please sign in to comment.