Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ ! -z "$1" ]; then
- path=$(readlink -f "$1")
- winpath=$(echo $path | sed -E "s/\/cygdrive\/([a-z])/\u\1\:/" | sed "s/\//\\\/g")
- if [ ! -z "$winpath" ]; then
- cisofile=$(echo $winpath | rev | cut -d'.' -f2- | rev).ciso
- echo "Input file: $winpath"
- echo "Output file: $cisofile"
- "/cygdrive/c/Program Files/Pismo File Mount Audit Package/ptiso.exe" convert -t ciso -z lzma "$winpath" "$cisofile"
- exit 0;
- fi
- exit 1
- else
- echo "Usage: $0 isofile"
- exit 1
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement