diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-04-17 01:17:10 -0400 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-04-17 01:17:19 -0400 |
commit | ade8d1ac87a00b4d8d9733670418860e64a282b8 (patch) | |
tree | 8493222ecaa5fc695768f1865e43ffd5ca145c9f | |
parent | 87ede4ee354ec25a3883155a2bb1da384a4413ae (diff) |
added comment as to deficiencies of ${PART} detection
-rwxr-xr-x | install.sh | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -13,6 +13,7 @@ fi export BASE=$(basename $DRIVE) export PART="/dev/$(basename $(echo /sys/class/block/$BASE/$BASE* | \ xargs -n1 echo | sed 1q | rev | cut -c 2- | rev ))" + # Assumes there is SOME partitioning # List all partitions of device, get first one, remove last char. umount $DRIVE* if [ ! -e installed ]; then |