From a7ff67b97651eaefd0546a210b188a7d8f9b41fa Mon Sep 17 00:00:00 2001 From: Siarhei Dudko Date: Fri, 29 Dec 2023 17:15:30 +0400 Subject: [PATCH] update install script --- README.md | 11 ++++++----- install.sh | 11 ++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) mode change 100644 => 100755 install.sh diff --git a/README.md b/README.md index 21f5e83..a37a2ef 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,8 @@ The project allows you to quickly deploy the basic configuration of firebase, co just run a script: ```bash -#!/usr/bin/bash +#!/bin/bash +GIT_URL="https://github.com/" FIREBASE_REPO="dudko-dev/firebase-template" FIREBASE_REPO_DIR="." FIREBASE_FUNCTIONS_REPO="dudko-dev/firebase-template-functions" @@ -23,13 +24,13 @@ FIREBASE_WEBAPI_REPO="dudko-dev/firebase-template-api" FIREBASE_WEBAPI_DIR="./hosting/api" mkdir $FIREBASE_REPO_DIR -git clone $FIREBASE_REPO $FIREBASE_REPO_DIR +git clone $GIT_URL$FIREBASE_REPO $FIREBASE_REPO_DIR mkdir $FIREBASE_FUNCTIONS_DIR -git clone $FIREBASE_FUNCTIONS_REPO $FIREBASE_FUNCTIONS_DIR +git clone $GIT_URL$FIREBASE_FUNCTIONS_REPO $FIREBASE_FUNCTIONS_DIR mkdir $FIREBASE_WEBSITE_DIR -git clone $FIREBASE_WEBSITE_REPO $FIREBASE_WEBSITE_DIR +git clone $GIT_URL$FIREBASE_WEBSITE_REPO $FIREBASE_WEBSITE_DIR mkdir $FIREBASE_WEBAPI_DIR -git clone $FIREBASE_WEBAPI_REPO $FIREBASE_WEBAPI_DIR +git clone $GIT_URL$FIREBASE_WEBAPI_REPO $FIREBASE_WEBAPI_DIR ``` ## Before using diff --git a/install.sh b/install.sh old mode 100644 new mode 100755 index ee6e831..dcab1f6 --- a/install.sh +++ b/install.sh @@ -1,4 +1,5 @@ -#!/usr/bin/bash +#!/bin/bash +GIT_URL="https://github.com/" FIREBASE_REPO="dudko-dev/firebase-template" FIREBASE_REPO_DIR="." FIREBASE_FUNCTIONS_REPO="dudko-dev/firebase-template-functions" @@ -9,10 +10,10 @@ FIREBASE_WEBAPI_REPO="dudko-dev/firebase-template-api" FIREBASE_WEBAPI_DIR="./hosting/api" mkdir $FIREBASE_REPO_DIR -git clone $FIREBASE_REPO $FIREBASE_REPO_DIR +git clone $GIT_URL$FIREBASE_REPO $FIREBASE_REPO_DIR mkdir $FIREBASE_FUNCTIONS_DIR -git clone $FIREBASE_FUNCTIONS_REPO $FIREBASE_FUNCTIONS_DIR +git clone $GIT_URL$FIREBASE_FUNCTIONS_REPO $FIREBASE_FUNCTIONS_DIR mkdir $FIREBASE_WEBSITE_DIR -git clone $FIREBASE_WEBSITE_REPO $FIREBASE_WEBSITE_DIR +git clone $GIT_URL$FIREBASE_WEBSITE_REPO $FIREBASE_WEBSITE_DIR mkdir $FIREBASE_WEBAPI_DIR -git clone $FIREBASE_WEBAPI_REPO $FIREBASE_WEBAPI_DIR +git clone $GIT_URL$FIREBASE_WEBAPI_REPO $FIREBASE_WEBAPI_DIR