This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Obtaining the UID and GID of the current user | |
| UID=$(id -u) | |
| GID=$(id -g) | |
| # Asking for the folder name with a default value | |
| read -p "Enter the name of the folder for the Laravel project [test-statamic]: " FOLDER_NAME | |
| FOLDER_NAME=${FOLDER_NAME:-test-statamic} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [[ $# -eq 0 ]]; then | |
| echo "Please provide a month in the format YYYY-MM (e.g., 2023-06) as an argument." | |
| exit 1 | |
| fi | |
| input_month=$1 | |
| earliest_commit_date=$(git log --reverse --format="%ad" --date=short | head -n 1) | |
| current_date=$(date +%Y-%m-%d) |