Skip to content

Commit

Permalink
nc-format-USB: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Sep 24, 2018
1 parent 3de5fe0 commit 1150ed8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@

[v0.60.5](https://github.com/nextcloud/nextcloudpi/commit/601cf1e) (2018-09-23) armbian: fix locales for ncp-config
[v0.60.6](https://github.com/nextcloud/nextcloudpi/commit/bf1a052) (2018-09-24) nc-format-USB: fix

[v0.60.4](https://github.com/nextcloud/nextcloudpi/commit/a7f0fd2) (2018-09-23) build: use a separate file for NCP database config
[v0.60.5](https://github.com/nextcloud/nextcloudpi/commit/3de5fe0) (2018-09-23) armbian: fix locales for ncp-config

[v0.60.4, master](https://github.com/nextcloud/nextcloudpi/commit/a7f0fd2) (2018-09-23) build: use a separate file for NCP database config

[v0.60.3](https://github.com/nextcloud/nextcloudpi/commit/1bfcebc) (2018-09-23) nc-update-nextcloud: workaround news integrity bug

Expand Down
2 changes: 1 addition & 1 deletion etc/ncp-config.d/nc-format-USB.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ configure()
done

# do it
local NAME=( $( lsblk -ln | grep -v -e mmcblk -e zram | grep disk | awk '{ print $1 }' ) )
local NAME=( $( lsblk -ln | grep "^sd[[:alpha:]].*disk" | awk '{ print $1 }' ) )
[[ ${#NAME[@]} != 1 ]] && { echo "unexpected error"; return 1; }

wipefs -a -f /dev/"$NAME" || return 1
Expand Down

0 comments on commit 1150ed8

Please sign in to comment.