123456789101112131415161718192021222324252627 |
- #!/usr/bin/env bash
- declare -a opts
- while [[ "$1" ]]; do
- case "$1" in
- -o|--owner) shift ;;
- -g|--group) shift ;;
- -s|--strip) ;;
- *) opts+=("$1") ;;
- esac
- shift
- done
- if [ -z "$(which ginstall 2>/dev/null)" ];then
- install=/usr/bin/install
- else
- install=ginstall
- fi
- exec $install "${opts[@]}"
|