gcc-toolset-15/gcc-toolset-env.in
Siddhesh Poyarekar 5c5559450d Fix typo in gcc-toolset-env
Resolves: RHEL-94760
2025-06-11 07:22:19 -04:00

15 lines
315 B
Bash

#!/usr/bin/sh
# Environment wrapper for GCC Toolset %{gts_ver}
. %{_root_prefix}/lib/gcc-toolset/%{gts_ver}-env.source
if [ -z "$1" ]; then
exec /usr/bin/sh
# Compatibility with `scl enable`, where the entire command shows up as a
# single argument.
elif [ -z "$2" ]; then
exec sh -c "$@"
else
exec "$@"
fi