]> git.ipfire.org Git - thirdparty/systemd.git/blob - man/50-xdg-data-dirs.sh
Merge pull request #32677 from keszybz/wording-fixes
[thirdparty/systemd.git] / man / 50-xdg-data-dirs.sh
1 #!/bin/sh
2 # SPDX-License-Identifier: MIT-0
3
4 # set the default value
5 XDG_DATA_DIRS="${XDG_DATA_DIRS:-/usr/local/share/:/usr/share}"
6
7 # add a directory if it exists
8 if [ -d /opt/foo/share ]; then
9 XDG_DATA_DIRS="/opt/foo/share:${XDG_DATA_DIRS}"
10 fi
11
12 # write our output
13 echo "XDG_DATA_DIRS=${XDG_DATA_DIRS}"