]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
profile: return earlier if it is loaded from non-bash shell
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 28 Feb 2025 07:26:53 +0000 (16:26 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 28 Feb 2025 12:24:06 +0000 (21:24 +0900)
Follow-up for dadbb34919abd3fefeb5b8ccc9794da9398a2503.

profile.d/80-systemd-osc-context.sh

index 59af2e1cde4e5c82882df6fc22be548e7813f73e..85983dc68d97a7d0588ef1a9a65a86858499f5cc 100644 (file)
@@ -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