fork 0k-charms
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
289 B

  1. #!/bin/bash
  2. occ() {
  3. /var/www/html/occ --no-warnings "$@"
  4. }
  5. args=()
  6. for arg in "$@"; do
  7. if [ "$arg" == ";" ]; then
  8. echo "running: occ " "${args[@]}" >&2
  9. occ "${args[@]}" # || exit 1
  10. args=()
  11. continue
  12. fi
  13. args+=("$arg")
  14. done
  15. occ "${args[@]}"