mirror of
https://git.proxmox.com/git/systemd
synced 2025-08-13 13:21:14 +00:00
14 lines
307 B
Bash
Executable File
14 lines
307 B
Bash
Executable File
#!/bin/sh
|
|
# SPDX-License-Identifier: MIT-0
|
|
|
|
# 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}"
|