diff options
author | nachoparker <nacho@ownyourbits.com> | 2019-04-10 03:46:02 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2019-04-30 04:57:40 +0300 |
commit | 02efd614fd562f8e540a68a0c5a4dc1fe1eaf78f (patch) | |
tree | 37751c9b98cbce161d9fb5005df4e979d9e1fede /bin/ncp | |
parent | 4a0885c0a6bb623f8662b75bad83395fd4280efe (diff) |
nc-restore: check btrfs commandv1.11.3
Diffstat (limited to 'bin/ncp')
-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 eee58c18..f94d6478 100644 --- a/bin/ncp/BACKUPS/nc-restore.sh +++ b/bin/ncp/BACKUPS/nc-restore.sh @@ -110,7 +110,7 @@ if [[ $( ls "$TMPDIR" | wc -l ) -eq $NUMFILES ]]; then echo "restore datadir to $DATADIR..." mkdir -p "$DATADIR" - [[ "$( stat -fc%T "$DATADIR" )" == "btrfs" ]] && { + [[ "$( stat -fc%T "$DATADIR" )" == "btrfs" ]] && which btrfs &>/dev/null && { rmdir "$DATADIR" || exit 1 btrfs subvolume create "$DATADIR" || exit 1 } |