diff options
Diffstat (limited to 'bin/ncp/BACKUPS/nc-restore.sh')
-rw-r--r-- | bin/ncp/BACKUPS/nc-restore.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ncp/BACKUPS/nc-restore.sh b/bin/ncp/BACKUPS/nc-restore.sh index f78f1a33..0ada9950 100644 --- a/bin/ncp/BACKUPS/nc-restore.sh +++ b/bin/ncp/BACKUPS/nc-restore.sh @@ -111,7 +111,7 @@ if [[ $( ls "$TMPDIR" | wc -l ) -eq $NUMFILES ]]; then echo "restore datadir to $DATADIR..." mkdir -p "$DATADIR" - [[ "$( stat -fc%T "$DATADIR" )" == "btrfs" ]] && which btrfs &>/dev/null && { + grep -q "btrfs" <(stat -fc%T "$DATADIR") && which btrfs &>/dev/null && { rmdir "$DATADIR" || exit 1 btrfs subvolume create "$DATADIR" || exit 1 } |