mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-26 19:38:07 -07:00
Closes: https://bugs.gentoo.org/662428 Package-Manager: Portage-2.3.43, Repoman-2.3.10 Closes: https://github.com/gentoo/gentoo/pull/9380
25 lines
301 B
Bash
25 lines
301 B
Bash
#!/bin/bash
|
|
|
|
for ARG in "${@}"; do
|
|
case ${ARG} in
|
|
-jar)
|
|
EXE=${2}
|
|
shift 2
|
|
break
|
|
;;
|
|
*)
|
|
shift
|
|
;;
|
|
esac
|
|
done
|
|
|
|
if [[ ${EXE} != *.jar ]]; then
|
|
echo "error: could not find jar argument in java invocation" >&2
|
|
exit 1
|
|
fi
|
|
|
|
EXE=smcipmitool-${EXE%.jar}
|
|
EXE=${EXE,,}
|
|
|
|
exec "${EXE}" "${@}"
|