mirror of https://github.com/lukechilds/umbrel.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
256 B
11 lines
256 B
5 years ago
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -euo pipefail
|
||
|
|
||
|
# This script returns a non-zero exit code if $UMBREL_ROOT is NOT
|
||
|
# mounted on external storage.
|
||
|
|
||
5 years ago
|
UMBREL_ROOT="$(readlink -f $(dirname "${BASH_SOURCE[0]}")/../../..)"
|
||
5 years ago
|
|
||
|
df -h "${UMBREL_ROOT}" | grep --quiet '/dev/sd'
|