1
0
Fork 0

Check for GitHub Token in nvim update script

This commit is contained in:
Daniel Kempkens 2021-12-17 21:42:19 +01:00
parent 55d900b8eb
commit 1491e0cabd

View file

@ -14,6 +14,11 @@ nix_file="${script_dir}/plugins.nix"
github_auth="$(cat "${script_dir}/github.auth")" 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" rm -f "$nix_new_file"
echo '# This file has been auto-generated' >"$nix_new_file" echo '# This file has been auto-generated' >"$nix_new_file"
echo '{ pkgs, ... }:' >>"$nix_new_file" echo '{ pkgs, ... }:' >>"$nix_new_file"