Check if REDDIT_TOKEN is set (#376)

This commit is contained in:
Ali Parlakçı authored and GitHub committed 2021-05-15 13:11:01 +03:00
1 parent 8a7d21e159
commit aea30d2b44
2 files changed
+6

No files matched your search

+3
View File
@@ -1,2 +1,5 @@
if (-not ([string]::IsNullOrEmpty($env:REDDIT_TOKEN)))
{
copy .\\bdfr\\default_config.cfg .\\test_config.cfg
echo "`nuser_token = $env:REDDIT_TOKEN" >> ./test_config.cfg
}
+3
View File
@@ -1,2 +1,5 @@
if [ ! -z "$REDDIT_TOKEN" ]
then
cp ./bdfr/default_config.cfg ./test_config.cfg
echo -e "\nuser_token = $REDDIT_TOKEN" >> ./test_config.cfg
fi