Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ -z $XDG_CONFIG_HOME ] && XDG_CONFIG_HOME="$HOME/.config"
- if [ ! -d $XDG_CONFIG_HOME ]; then
- if [ -e $XDG_CONFIG_HOME ]; then
- echo "$SELF: error: $XDG_CONFIG_HOME exists but is not a directory" >&2
- return 2
- else
- mkdir $XDG_CONFIG_HOME || echo "$SELF: error: could not create $XDG_CONFIG_HOME" >&2
- return 2
- fi
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement