Skip to content

Instantly share code, notes, and snippets.

View gdunstone's full-sized avatar

Gwyn Dunstone gdunstone

View GitHub Profile
#!/bin/bash
if [ $# -lt 1 ]
then
echo "USAGE: $0 <block device>"
exit 1
fi
read -p "about to format $1, Are you sure?" -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
#!/bin/bash -xe
echo "USAGE ./generate_gigapan.sh </dir/to/images> <output_prefix> <#threads>"
tmp=/tmp/hugin_batch_script_$RANDOM
mkdir -p $tmp
initial_pto="$tmp/$RANDOM.pto"
cp_pto="$tmp/$RANDOM.pto"