perkeep/dev-cammount

21 lines
292 B
Bash
Executable File

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