diff options
| author | JaKooLit <ejhay.games@gmail.com> | 2024-09-18 23:59:42 +0900 |
|---|---|---|
| committer | JaKooLit <ejhay.games@gmail.com> | 2024-09-18 23:59:42 +0900 |
| commit | 57448259139628bf8c168f7d4dad77b6874978cb (patch) | |
| tree | b00883222162cd93b4cfa8cdf39af1a6e54fe098 | |
| parent | d7dc56e6fcb0ddbf3750336a042eceff802aad93 (diff) | |
updated
| -rwxr-xr-x | copy.sh | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -333,8 +333,15 @@ printf "\n" # Copy Config Files # set -e # Exit immediately if a command exits with a non-zero status. -printf "${NOTE} - copying dotfiles first part\n" +# Function to create a unique backup directory name with month, day, hours, and minutes +get_backup_dirname() { + local timestamp + timestamp=$(date +"%m%d_%H%M") + echo "back-up_${timestamp}" +} + +printf "${NOTE} - copying dotfiles first part\n" # Config directories which will ask the user whether to replace or not DIRS=" ags @@ -398,13 +405,6 @@ printf "\n%.0s" {1..1} printf "${NOTE} - Copying dotfiles second part\n" -# Function to create a unique backup directory name with month, day, hours, and minutes -get_backup_dirname() { - local timestamp - timestamp=$(date +"%m%d_%H%M") - echo "back-up_${timestamp}" -} - # Check if the config directory exists if [ ! -d "config" ]; then echo "${ERROR} - The 'config' directory does not exist." |
