aboutsummaryrefslogtreecommitdiff
path: root/run.sh
blob: 0beb5eb0536cda02a52faef7c2af3089a63f797a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
NEW_DISK="mkfs.md/disk.mdfs"

echo "Compilando..."
make > /dev/null
if [ $? -ne 0 ]; then
    echo "Error de compilacion"
    exit 1
fi

fusermount -u ./mnt 2> /dev/null && echo "Desmontando"

echo "Copiando $NEW_DISK"
cp ./$NEW_DISK .

if [ "$1" == "valgrind" ]; then
    valgrind --show-reachable=yes --leak-check=full ./fusewrapper mnt
else
    ./fusewrapper mnt
fi

exit 0