From: Yu Watanabe Date: Fri, 28 Feb 2025 07:26:53 +0000 (+0900) Subject: profile: return earlier if it is loaded from non-bash shell X-Git-Tag: v258-rc1~1221 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=649c63d6ac5305191662cb8378b024a090900ad9;p=thirdparty%2Fsystemd.git profile: return earlier if it is loaded from non-bash shell Follow-up for dadbb34919abd3fefeb5b8ccc9794da9398a2503. --- diff --git a/profile.d/80-systemd-osc-context.sh b/profile.d/80-systemd-osc-context.sh index 59af2e1cde4..85983dc68d9 100644 --- a/profile.d/80-systemd-osc-context.sh +++ b/profile.d/80-systemd-osc-context.sh @@ -10,6 +10,9 @@ # the Free Software Foundation; either version 2.1 of the License, or # (at your option) any later version. +# Not bash? +[ -n "${BASH_VERSION:-}" ] || return 0 + __systemd_osc_context_escape() { # Escape according to the OSC 8003 spec. Since this requires shelling out # to 'sed' we'll only do it where it's strictly necessary, and skip it when