Skip to content

Commit

Permalink
Merge pull request #1855 from m-breitbach/fix/format-usb-broken-flag
Browse files Browse the repository at this point in the history
Fix bug in nc-format-USB.sh
  • Loading branch information
theCalcaholic authored Aug 19, 2024
2 parents 6337951 + 5fd7acf commit 3390b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ncp/TOOLS/nc-format-USB.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ configure()
}

DATADIR="$(get_nc_config_value datadirectory || true)"
if [[ $( stat -fc%d / ) != $( stat -fc%d "$DATADIR" ) ]] || [[ -z "$DATADIR" ]] && [[ "$ALLOW_DATA_DIR_REMOVAL" != "yes" ]]
if [[ $( stat -fc%d / ) != $( stat -fc%d "$DATADIR" ) ]] || [[ -z "$DATADIR" ]] && [[ "$ALLOW_DATADIR_REMOVAL" != "yes" ]]
then
echo "ERROR: Data directory is on USB drive (or can't be determined) and removal of data directory was not explicitly allowed." \
"Please move the data directory to SD before formatting the USB drive." \
Expand Down

0 comments on commit 3390b64

Please sign in to comment.