Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- function ERROR()
- {
- echo -e "\n\033[0;31mError - "$1"\n\033[0;32mUsage: make-cso.bash path/source.iso path/target.cso\033[0m\n"
- exit 1
- }
- if [ $# -gt 0 ]; then
- if [ -z "$2" ]; then ERROR "No target specified."; fi
- if [ ! -e "$1" ]; then ERROR "Source path or file does not exist."; fi
- ~/cisoplus/cisoplus -com -opt -MT -l9 -rm_update "$1" "$2"
- else
- ERROR "Missing source and target file and path."
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement