From 1491e0cabde38fb3aaecbdfc84c2fa4e4bed4448 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Fri, 17 Dec 2021 21:42:19 +0100 Subject: [PATCH] Check for GitHub Token in nvim update script --- programs/nvim/update-plugins.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/programs/nvim/update-plugins.sh b/programs/nvim/update-plugins.sh index fc47097..f869cb0 100755 --- a/programs/nvim/update-plugins.sh +++ b/programs/nvim/update-plugins.sh @@ -14,6 +14,11 @@ nix_file="${script_dir}/plugins.nix" github_auth="$(cat "${script_dir}/github.auth")" +if [ -z "$github_auth" ]; then + echo "Please supply GitHub API credentials" + exit 1 +fi + rm -f "$nix_new_file" echo '# This file has been auto-generated' >"$nix_new_file" echo '{ pkgs, ... }:' >>"$nix_new_file"