mirror of
https://github.com/systemd/systemd.git
synced 2024-12-02 23:03:50 +08:00
1bd2d4e31b
v2: - add example files to EXTRA_DIST v3: - rework for the new scheme where nothing is written to disk v4: - use separate dirs for system and user env generators
13 lines
271 B
Bash
Executable File
13 lines
271 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# set the default value
|
|
XDG_DATA_DIRS="${XDG_DATA_DIRS:-/usr/local/share/:/usr/share}"
|
|
|
|
# add a directory if it exists
|
|
if [[ -d /opt/foo/share ]]; then
|
|
XDG_DATA_DIRS=/opt/foo/share:${XDG_DATA_DIRS}
|
|
fi
|
|
|
|
# write our output
|
|
echo XDG_DATA_DIRS=$XDG_DATA_DIRS
|