diff options
author | Florian Pritz <bluewind@xinu.at> | 2013-08-28 18:32:08 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2013-08-28 18:32:08 +0200 |
commit | b1d5e3c4f3392488058c524bbc4547c0e7363f18 (patch) | |
tree | edb19ecd4a8b1363d0905783442568c23677ef98 | |
parent | 9329567a8ca6207c9fe7434e6f55a1e8d1a01e07 (diff) |
Create config dir if neededv1.2.1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | fb.in | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -261,6 +261,9 @@ create_apikey() { status_code=`tail -n 1 "$tmpdir/api-result"` if [ "$status_code" == "200" ]; then + if [ ! -d "$XDG_CONFIG_HOME/fb-client/" ]; then + mkdir "$XDG_CONFIG_HOME/fb-client" + fi head -n 1 "$tmpdir/api-result" > "$apikey_file" return 0 fi |