mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-06-01 07:04:59 +08:00
Fixed argument passing when run with sudo
This commit is contained in:
@@ -48,5 +48,5 @@ if [ -z "${OWNER}" -o "${OWNER}" = "$(whoami)" ]; then
|
|||||||
"${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
|
||||||
|
|||||||
Reference in New Issue
Block a user