From 74306b77c58fa1dd74a6162e7eeca9b93f121528 Mon Sep 17 00:00:00 2001 From: Patrick Neumann Date: Wed, 30 Jan 2019 13:28:52 +0100 Subject: [PATCH] fix hardcoded device --- kali/make_kali-usb-stick_persistent | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kali/make_kali-usb-stick_persistent b/kali/make_kali-usb-stick_persistent index f55ddd6..1f691a5 100755 --- a/kali/make_kali-usb-stick_persistent +++ b/kali/make_kali-usb-stick_persistent @@ -64,7 +64,7 @@ if blkid "${USBSTICK}"3 | grep -F persistence &> /dev/null ; then fi # add 3rd partition to the end of the usb stick -FREE="$( parted -m /dev/sdd print free | grep -F free | tail -n 1 )" +FREE="$( parted -m "${USBSTICK}" print free | grep -F free | tail -n 1 )" START="$( printf "${FREE}" | awk -F ":" '{ print $2; }' )" END="$( printf "${FREE}" | awk -F ":" '{ print $3; }' )" parted "${USBSTICK}" mkpart primary "${START}" "${END}"