tar 365 B

1234567891011121314151617
  1. #!/usr/bin/env bash
  2. # This file is part of the OpenADK project. OpenADK is copyrighted
  3. # material, please see the LICENCE file in the top-level directory.
  4. if [ -z "$(which gtar 2>/dev/null)" ];then
  5. if [ -z "$(which gnutar 2>/dev/null)" ];then
  6. if [ -x /usr/bin/tar ];then
  7. /usr/bin/tar "$@"
  8. else
  9. /bin/tar "$@"
  10. fi
  11. else
  12. gnutar "$@"
  13. fi
  14. else
  15. gtar "$@"
  16. fi