Skip to content

Commit

Permalink
Merge pull request #3 from andrunko/adjust-profile
Browse files Browse the repository at this point in the history
Adjust profile
  • Loading branch information
akdev1l authored Aug 17, 2022
2 parents b1c0e87 + 225780e commit 1272a2a
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions profile.d/toolbox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ toolbox_welcome_stub="$toolbox_config/toolbox-welcome-shown"
# shellcheck disable=2046
# shellcheck disable=SC1091
eval $(
. /usr/lib/os-release
if [ -f /usr/lib/os-release ]; then
. /usr/lib/os-release
else
. /etc/os-release
fi
echo ID="$ID"
echo VARIANT_ID="$VARIANT_ID"
Expand Down Expand Up @@ -47,13 +51,18 @@ if [ -f /run/.containerenv ] \
echo "Welcome to the Toolbox; a container where you can install and run"
echo "all your tools."
echo ""
echo " - Use DNF in the usual manner to install command line tools."
echo " - To create a new tools container, run 'toolbox create'."
echo ""
printf "For more information, see the "
# shellcheck disable=SC1003
printf '\033]8;;https://docs.fedoraproject.org/en-US/fedora-silverblue/toolbox/\033\\documentation\033]8;;\033\\'
printf ".\n"

if [ "${ID}" = "fedora" ]; then
echo " - Use DNF in the usual manner to install command line tools."
echo " - To create a new tools container, run 'toolbox create'."
echo ""
printf "For more information, see the "
# shellcheck disable=SC1003
printf '\033]8;;https://docs.fedoraproject.org/en-US/fedora-silverblue/toolbox/\033\\documentation\033]8;;\033\\'
printf ".\n"
else
echo " - To create a new tools container, run 'toolbox create'."
fi
echo ""

mkdir -p "$toolbox_config"
Expand Down

0 comments on commit 1272a2a

Please sign in to comment.