mirror of
https://github.com/SynologyOpenSource/pkgscripts-ng.git
synced 2025-07-20 18:20:23 +00:00
26 lines
245 B
Bash
Executable File
26 lines
245 B
Bash
Executable File
#!/bin/bash
|
|
|
|
deWrapCmd () {
|
|
echo "${0/-wrap-/-}"
|
|
}
|
|
|
|
main () {
|
|
local cmd="$(deWrapCmd)"
|
|
|
|
for arg do
|
|
shift
|
|
case "$arg" in
|
|
-L/usr/lib | -L/usr/lib/*)
|
|
continue
|
|
;;
|
|
*)
|
|
set -- "$@" "$arg"
|
|
;;
|
|
esac
|
|
done
|
|
|
|
$cmd "$@"
|
|
}
|
|
|
|
main "$@"
|