diff options
| author | Florent Foltzer | 2015-03-04 11:13:47 +0100 |
|---|---|---|
| committer | Florent Foltzer | 2015-03-04 11:13:47 +0100 |
| commit | 1c917ed43a58e1c1c77ccd0815b6e95fbcca54ff (patch) | |
| tree | 74ea76de2465eac7faa6a0b7bc1e9019a9319df7 /script.sh | |
| parent | 29d2dc94f876e2efb4f008cac33584bebc3dcefb (diff) | |
Add sudo and type ext4 to mount cmd
Diffstat (limited to 'script.sh')
| -rwxr-xr-x | script.sh | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -4,7 +4,7 @@ mkdir -p "$MOUNT_PATH" | |||
| 4 | 4 | ||
| 5 | while read name | 5 | while read name |
| 6 | do | 6 | do |
| 7 | mount -oloop,ro,noload "$name" "$MOUNT_PATH" | 7 | sudo -t ext4 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" || exit 1 | 9 | sudo umount "$MOUNT_PATH" || exit 1 |
| 10 | done | 10 | done |
