directory_fix

This commit is contained in:
simono41 2018-06-09 08:57:21 +02:00
parent cc27fa89d2
commit 70b867ec38

View file

@ -13,9 +13,9 @@ fdisk -l
read -p "Wo soll das Image aufgespielt werden?: /dev/sda : " device read -p "Wo soll das Image aufgespielt werden?: /dev/sda : " device
[[ -z "${device}" ]] && device=/dev/sda [[ -z "${device}" ]] && device=/dev/sda
if [ -f arch-spectre_os-*-armV7.tar.pxz ] if [ -f out/arch-spectre_os-*-armV7.tar.pxz ]
then then
image=$(find arch-spectre_os-*-armV7.tar.pxz) image=$(find out/arch-spectre_os-*-armV7.tar.pxz)
echo $datei echo $datei
else else
echo "ABGEBROCHEN" echo "ABGEBROCHEN"
@ -84,7 +84,7 @@ mkfs.ext4 /dev/"$device"2
mkdir -p root mkdir -p root
mount /dev/"$device"2 root mount /dev/"$device"2 root
tar -Ipixz -xpf arch-spectre_os-*-armV7.tar.pxz -C root tar -Ipixz -xpf out/arch-spectre_os-*-armV7.tar.pxz -C root
sync sync
mv root/boot/* boot mv root/boot/* boot