Code Snippets
Login
Project cloner
Provide the Fork URL and this will take care of the rest
Label
read -p "Copy the URL of YOUR fork here: " FORK_DIR PROJ_NAME=$(basename "$FORK_DIR" .git) echo 'The project will be called:' $PROJ_NAME && \ read -p "Enter the database name: " DB_NAME echo 'Cloning the repository' && \ git clone "$FORK_DIR" && \ echo 'Cloning Complete' && \ cd "$PROJ_NAME" && \ UPSTR_URL="https://github.com/Leerlandais/$PROJ_NAME.git" echo "Adding Upstream address as :" $UPSTR_URL && \ git remote add upstream "$UPSTR_URL" && \ echo "Upstream Remote Added" cat <<EOF > config.php <?php const DB_DRIVER = "mysql"; const DB_HOST = "localhost"; const DB_LOGIN = "root"; const DB_PWD = ""; const DB_NAME = "${DB_NAME}"; const DB_PORT = 3306; const DB_CHARSET = "utf8mb4"; const PROJECT_DIRECTORY = __DIR__; EOF
Copy to clipboard
Copied!
©
Leerlandais 2024