Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. [ -z $XDG_CONFIG_HOME ] && XDG_CONFIG_HOME="$HOME/.config"
  2. if [ ! -d $XDG_CONFIG_HOME ]; then
  3. if [ -e $XDG_CONFIG_HOME ]; then
  4. echo "$SELF: error: $XDG_CONFIG_HOME exists but is not a directory" >&2
  5. return 2
  6. else
  7. mkdir $XDG_CONFIG_HOME || echo "$SELF: error: could not create $XDG_CONFIG_HOME" >&2
  8. return 2
  9. fi
  10. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement