diff options
| author | Julien Voisin | 2015-03-04 10:28:47 +0100 |
|---|---|---|
| committer | Julien Voisin | 2015-03-04 10:28:47 +0100 |
| commit | 848f3ddf03cfe310f25e538329e3e40925d0869f (patch) | |
| tree | 917f79197f936ac87dc98f6f48fd1dd2f6ed2569 /script.sh | |
| parent | b861e21a9e3785f6f0a2839ee649c3ef502e21ba (diff) | |
Simplify a bit the mounting script
Diffstat (limited to 'script.sh')
| -rwxr-xr-x | script.sh | 6 |
1 files changed, 1 insertions, 5 deletions
| @@ -6,9 +6,5 @@ while read name | |||
| 6 | do | 6 | do |
| 7 | mount -oloop,ro,noload "$name" "$MOUNT_PATH" | 7 | mount -oloop,ro,noload "$name" "$MOUNT_PATH" |
| 8 | python ./scanner.py -f "$MOUNT_PATH" -t 1 | 8 | python ./scanner.py -f "$MOUNT_PATH" -t 1 |
| 9 | umount "$MOUNT_PATH" | 9 | umount "$MOUNT_PATH" || exit 1 |
| 10 | if [ $? -neq 0 ] | ||
| 11 | then | ||
| 12 | exit 1 | ||
| 13 | fi | ||
| 14 | done | 10 | done |
