Skip to content

Instantly share code, notes, and snippets.

@Landrash
Last active February 9, 2018 18:59
Show Gist options
  • Save Landrash/99ab1b6a44ffef7dbbb7fa71dde028be to your computer and use it in GitHub Desktop.
Save Landrash/99ab1b6a44ffef7dbbb7fa71dde028be to your computer and use it in GitHub Desktop.
Quick SKIP script for the hassbian pi-gen script.
#!/bin/bash
if [ -f pi-gen/stage0/SKIP ]; then
echo "SKIP file found. Removing SKIP files"
sudo rm pi-gen/stage0/SKIP
sudo rm pi-gen/stage1/SKIP
sudo rm pi-gen/stage2/SKIP
exit
else
echo "No SKIP file found. Creating SKIP files."
sudo touch pi-gen/stage0/SKIP
sudo touch pi-gen/stage1/SKIP
sudo touch pi-gen/stage2/SKIP
exit
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment