mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
Fixed argument passing when run with sudo
This commit is contained in:
parent
fe11274fe7
commit
6446bb2cf1
1 changed files with 2 additions and 2 deletions
|
@ -47,6 +47,6 @@ if [ -z "${OWNER}" -o "${OWNER}" = "$(whoami)" ]; then
|
||||||
VMARGS="-DUserAdmin.invocation=$(basename "${SCRIPT_FILE}") -DUserAdmin.config=\"${CONFIG}\""
|
VMARGS="-DUserAdmin.invocation=$(basename "${SCRIPT_FILE}") -DUserAdmin.config=\"${CONFIG}\""
|
||||||
"${SCRIPT_DIR}"/../support/launch.sh fg svrAdmin "${MAXMEM}" "$VMARGS" ghidra.server.ServerAdmin "$@"
|
"${SCRIPT_DIR}"/../support/launch.sh fg svrAdmin "${MAXMEM}" "$VMARGS" ghidra.server.ServerAdmin "$@"
|
||||||
else
|
else
|
||||||
echo "Running svrAdmin with $SUDO as ${OWNER} ..."
|
echo "Running svrAdmin with $SUDO as ${OWNER} ..."
|
||||||
$SUDO -u $OWNER "$0" "${ARGS[@]}"
|
$SUDO -u $OWNER "$0" "$@"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue