1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00
anytype-kotlin/middleware2.sh

23 lines
No EOL
404 B
Bash
Executable file

#!/usr/bin/env bash
TOKEN=$1
USER=$2
GITHUB_USER_PROPERTY="gpr.usr"
GITHUB_KEY_PROPERTY="gpr.key"
if [ "$TOKEN" = "" ]; then
echo "ERROR: token is empty"
exit 1
fi;
if [ "$USER" = "" ]; then
echo "ERROR: user is empty"
exit 1
fi;
rm -rf github.properties
touch github.properties
echo "$GITHUB_USER_PROPERTY=$USER" >> github.properties
echo "$GITHUB_KEY_PROPERTY=$TOKEN" >> github.properties