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:
parent
12b3ed44f3
commit
649c63d6ac
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user