From cd2f2209d0e8a20d65a157796dab2afbbb8a849d Mon Sep 17 00:00:00 2001 From: Foke Singh Date: Mon, 13 Mar 2023 15:31:13 +0000 Subject: [PATCH] Create token directory if it does not exist. --- docs/huggingface-access-token.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/huggingface-access-token.md b/docs/huggingface-access-token.md index 4c9bc1b..c92a12e 100644 --- a/docs/huggingface-access-token.md +++ b/docs/huggingface-access-token.md @@ -15,7 +15,7 @@ Here is how you can generate a **"read-only public repositories"** access token * store the token on your machine (replace the placeholder with your actual token): ``` -echo -n > `$HOME/.cache/huggingface/token` +mkdir -p $HOME/.cache/huggingface/; echo -n > "$HOME/.cache/huggingface/token" ``` The `-n` is important in order to not append an "end of line" character at the end of the file that would corrupt the token.