From 954fbf673152640b035d02b589534ab522b5856e Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 8 Sep 2013 18:37:07 +0200 Subject: Create all required directories for apikey Signed-off-by: Florian Pritz --- fb.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fb.in b/fb.in index 06fa4e2..e14fa31 100644 --- a/fb.in +++ b/fb.in @@ -262,7 +262,7 @@ create_apikey() { if [ "$status_code" == "200" ]; then if [ ! -d "$XDG_CONFIG_HOME/fb-client/" ]; then - mkdir "$XDG_CONFIG_HOME/fb-client" + mkdir -p "$XDG_CONFIG_HOME/fb-client" fi head -n 1 "$tmpdir/api-result" > "$apikey_file" return 0 -- cgit v1.2.3-24-g4f1b