aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaKooLit <ejhay.games@gmail.com>2024-09-18 23:59:42 +0900
committerJaKooLit <ejhay.games@gmail.com>2024-09-18 23:59:42 +0900
commit57448259139628bf8c168f7d4dad77b6874978cb (patch)
treeb00883222162cd93b4cfa8cdf39af1a6e54fe098
parentd7dc56e6fcb0ddbf3750336a042eceff802aad93 (diff)
updated
-rwxr-xr-xcopy.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/copy.sh b/copy.sh
index c2b860ee..5c53cf62 100755
--- a/copy.sh
+++ b/copy.sh
@@ -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."
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage