Skip to content

Commit

Permalink
Fix typo in nc-format-USB.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Moritz Breitbach <[email protected]>
Signed-off-by: Tobias Knöppler <[email protected]>
  • Loading branch information
m-breitbach authored and theCalcaholic committed Aug 19, 2024
1 parent 8fa19a5 commit fc0b75b
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 fc0b75b

Please sign in to comment.