24 lines
431 B
Text
24 lines
431 B
Text
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -euo pipefail
|
||
|
|
||
|
if [ -z ${XDG_CONFIG_HOME+x} ]; then
|
||
|
echo "ERROR: 'XDG_CONFIG_HOME' is not set."
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
if [ -z ${XDG_DATA_HOME+x} ]; then
|
||
|
echo "ERROR: 'XDG_DATA_HOME' is not set."
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
if [ -z ${XDG_CACHE_HOME+x} ]; then
|
||
|
echo "ERROR: 'XDG_CACHE_HOME' is not set."
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
if [ -z ${XDG_STATE_HOME+x} ]; then
|
||
|
echo "ERROR: 'XDG_STATE_HOME' is not set."
|
||
|
exit 1
|
||
|
fi
|