1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-06 00:58:29 +03:00

profile: return earlier if it is loaded from non-bash shell

Follow-up for dadbb34919abd3fefeb5b8ccc9794da9398a2503.
This commit is contained in:
Yu Watanabe 2025-02-28 16:26:53 +09:00
parent 12b3ed44f3
commit 649c63d6ac

View 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