summaryrefslogtreecommitdiffstats
path: root/fb.in
diff options
context:
space:
mode:
Diffstat (limited to 'fb.in')
-rw-r--r--fb.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/fb.in b/fb.in
index c271605..ccc6236 100644
--- a/fb.in
+++ b/fb.in
@@ -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