fix: no excess slash before disk device name (location)

This commit is contained in:
Alexander Tomokhov 2023-12-28 21:06:35 +04:00
parent 4866762afc
commit 66f61ce536

View file

@ -65,7 +65,7 @@ genUserdata() {
local hashed_password diskDeviceName userdata_infect local hashed_password diskDeviceName userdata_infect
hashed_password="$(mkpasswd -m sha-512 "$USER_PASS")" hashed_password="$(mkpasswd -m sha-512 "$USER_PASS")"
diskDevice="$(determine2ndDisk)" diskDevice="$(determine2ndDisk)"
diskDeviceName="${diskDevice##/dev}" diskDeviceName="${diskDevice##/dev/}"
userdata_infect=$(cat << EOF userdata_infect=$(cat << EOF
{ {