Remove unnecessary environment variable
This commit is contained in:
parent
dfb347eb3a
commit
bdb16a3e9f
|
@ -247,18 +247,14 @@ begin
|
||||||
"$bootPath" \
|
"$bootPath" \
|
||||||
"$dataPath"
|
"$dataPath"
|
||||||
|
|
||||||
|
chooseDisk winDisk
|
||||||
if [ ! -b "$WIN_DISK" ]
|
echo "Proceeding will cause the disk `$winDisk` to be wiped."
|
||||||
chooseDisk WIN_DISK
|
|
||||||
end
|
|
||||||
|
|
||||||
echo "Proceeding will cause the disk `$WIN_DISK` to be wiped."
|
|
||||||
|
|
||||||
if ! confirm "Are you sure you want to continue?" "n"
|
if ! confirm "Are you sure you want to continue?" "n"
|
||||||
exit 1
|
exit 1
|
||||||
end
|
end
|
||||||
|
|
||||||
sudo shred -vfzn 0 -s 512 "$WIN_DISK"
|
sudo shred -vfzn 0 -s 512 "$winDisk"
|
||||||
|
|
||||||
begin
|
begin
|
||||||
printf %s\n \
|
printf %s\n \
|
||||||
|
@ -285,18 +281,13 @@ begin
|
||||||
7 \
|
7 \
|
||||||
\
|
\
|
||||||
w
|
w
|
||||||
end | sudo fdisk "$WIN_DISK"
|
end | sudo fdisk "$winDisk"
|
||||||
|
|
||||||
begin
|
begin
|
||||||
set -l disks
|
set -l disks
|
||||||
|
set -l diskPath (find -L /dev/disk/by-diskseq -samefile $winDisk)
|
||||||
while true
|
set -l bootDisk "$diskPath-part1"
|
||||||
set disks (string split -n " " (bash -c "echo $WIN_DISK*"))
|
set -l dataDisk "$diskPath-part2"
|
||||||
[ (count $disks) -ge 3 ] && break
|
|
||||||
end
|
|
||||||
|
|
||||||
set -l bootDisk "$disks[2]"
|
|
||||||
set -l dataDisk "$disks[3]"
|
|
||||||
sudo mkfs.fat -F 32 -n "BOOT" "$bootDisk"
|
sudo mkfs.fat -F 32 -n "BOOT" "$bootDisk"
|
||||||
sudo mkfs.ntfs -fFL "$setupLabel" "$dataDisk"
|
sudo mkfs.ntfs -fFL "$setupLabel" "$dataDisk"
|
||||||
sudo mount --mkdir "$bootDisk" "$bootPath"
|
sudo mount --mkdir "$bootDisk" "$bootPath"
|
||||||
|
|
Loading…
Reference in a new issue