rsyn_no_e24.sh 405 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. # Coding: utf-8
  3. # Editor: www.geany.org
  4. # Created 2018-11-14
  5. #_sudo_apt_install_ rsync
  6. source $HOME/.SCR/lib.sh
  7. fun_echo_stadia 11 0 "rsync_no_e24.sh Run rsync $@"
  8. rsync "$@"
  9. e=$?
  10. if (( $e == "24" ))
  11. then
  12. fun_echo_stadia 11 0 "rsync_no_e24.sh Error $e ignored"
  13. exit 0
  14. fi
  15. if (( $e == "23" ))
  16. then
  17. fun_echo_stadia 11 0 "rsync_no_e24.sh Error $e ignored"
  18. exit 0
  19. fi
  20. exit $e