You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: SETUP_TEMPLATE.sh
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ PROJECT_TYPE="repository" # default value if not specified
32
32
will_omit_verification=false
33
33
will_omit_commit=false
34
34
will_omit_test=false
35
-
SCRIPT_VERSION="1.11.0"
35
+
SCRIPT_VERSION="1.11.7"
36
36
37
37
FILE_FUNCTION_HELPERS=bin/FUNCTION_HELPERS.sh
38
38
@@ -131,8 +131,8 @@ y | Y)
131
131
find .github/ -type f -name"*" -print0| xargs -0 sed -i"s/project-template/${PROJECT_NAME}/g"
132
132
find .gitignore -type f -name"*" -print0| xargs -0 sed -i"s/Josee9988\/project-template/${NEW_USERNAME}\/${PROJECT_NAME}/g"
133
133
134
-
rm LICENSE# remove the license
135
-
rm -r bin/# remove the bin folder
134
+
rm LICENSE2>/dev/null||:# remove the license
135
+
rm -r bin/2>/dev/null||:# remove the bin folder
136
136
rm -r tests/2>/dev/null||:# remove the tests folder
137
137
rm -r .github/workflows/2>/dev/null||:# remove the workflow folder
138
138
writeREADME# write the new README.md
@@ -148,7 +148,7 @@ y | Y)
148
148
fi
149
149
150
150
# self remove this script
151
-
rm --"$0"
151
+
rm --"$0"2>/dev/null||:
152
152
;;
153
153
n | N)
154
154
echo -e"\nIf your username, project name or email were NOT right, you can manually change them. Read how to do it with the script's help:${UPURPLE}bash SETUP_TEMPLATE.sh --help${NC}\n"