perkeep/dev-cammount

21 lines
292 B
Plaintext
Raw Normal View History

2011-03-29 17:41:03 +00:00
#!/bin/sh
set -x
set -e
DIR=/tmp/cammount-dir
mkdir -p $DIR
go install ./cmd/cammount/
2011-03-29 17:41:03 +00:00
(fusermount -u $DIR) || umount $DIR || umount -f $DIR || true
cammount --blobserver=localhost:3179/bs $@ $DIR &
2011-03-29 17:41:03 +00:00
sleep 1
cd $DIR
bash
cd /
fusermount -u $DIR || umount $DIR || umount -f $DIR || true