Advertisement
pintcat

make-cso.bash 1.0

Oct 22nd, 2016
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.44 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. function ERROR()
  4. {
  5.     echo -e "\n\033[0;31mError - "$1"\n\033[0;32mUsage: make-cso.bash path/source.iso path/target.cso\033[0m\n"
  6.     exit 1
  7. }
  8.  
  9. if [ $# -gt 0 ]; then
  10.     if [ -z "$2" ]; then ERROR "No target specified."; fi
  11.     if [ ! -e "$1" ]; then ERROR "Source path or file does not exist."; fi
  12.     ~/cisoplus/cisoplus -com -opt -MT -l9 -rm_update "$1" "$2"
  13. else
  14.     ERROR "Missing source and target file and path."
  15. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement