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