do not override the DOT variable from forgejo-curl.sh

This commit is contained in:
Earl Warren 2023-12-20 22:24:48 +01:00
parent 65957effd9
commit 05385ad75e
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 0 additions and 2 deletions

View file

@ -69,7 +69,6 @@ function create_user() {
$DIR/forgejocli admin user create --admin --username "$user" --password "$password" --email "$user@example.com" $DIR/forgejocli admin user create --admin --username "$user" --password "$password" --email "$user@example.com"
$DIR/forgejocli admin user generate-access-token -u "$user" --raw --scopes all > $DIR/forgejo-token $DIR/forgejocli admin user generate-access-token -u "$user" --raw --scopes all > $DIR/forgejo-token
export DOT=$DIR
local url="http://$(cat $DIR/forgejo-ip):3000" local url="http://$(cat $DIR/forgejo-ip):3000"
echo "$url" > $DIR/forgejo-url echo "$url" > $DIR/forgejo-url
echo "http://${user}:${password}@$(cat $DIR/forgejo-ip):3000" > $DIR/forgejo-auth-url echo "http://${user}:${password}@$(cat $DIR/forgejo-ip):3000" > $DIR/forgejo-auth-url

View file

@ -10,7 +10,6 @@ source $SELF_DIR/forgejo-lib.sh
: ${LOOP_DELAY:=5} : ${LOOP_DELAY:=5}
WORKDIR=$(mktemp -d) WORKDIR=$(mktemp -d)
: ${DIR:=$(pwd)} : ${DIR:=$(pwd)}
export DOT=$DIR
trap "rm -fr $WORKDIR" EXIT trap "rm -fr $WORKDIR" EXIT