image='' && [ "$image" != '' ] && mkdir -p ~/Downloads/ && cd ~/Downloads && wget -N --no-check-certificate https://raw.githubusercontent.com/Drewsif/PiShrink/master/pishrink.sh chmod +x pishrink.sh && sudo su -c "$PWD/pishrink.sh -s ${image:?} ${image%%.img}_resized.img"
dd bs=4M if=/dev/sdd of=from-sd-card.img truncate --reference 2015-11-21-raspbian-jessie.img from-sd-card.img