Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7e1de6b

Browse files
committed
"1.11.7 rm files won't show errors"
1 parent48ab429 commit7e1de6b

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

‎CHANGELOG.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
77

88
---
99

10+
##[**1.11.7**] - 2021-12-05
11+
12+
###Added
13+
14+
* In the main script, removing the bin/ folder, the LICENSE file and the script itself will not prompt errors if there are any problems
15+
1016
##[**1.11.6**] - 2021-12-04
1117

1218
###Added

‎SETUP_TEMPLATE.sh‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ PROJECT_TYPE="repository" # default value if not specified
3232
will_omit_verification=false
3333
will_omit_commit=false
3434
will_omit_test=false
35-
SCRIPT_VERSION="1.11.0"
35+
SCRIPT_VERSION="1.11.7"
3636

3737
FILE_FUNCTION_HELPERS=bin/FUNCTION_HELPERS.sh
3838

@@ -131,8 +131,8 @@ y | Y)
131131
find .github/ -type f -name"*" -print0| xargs -0 sed -i"s/project-template/${PROJECT_NAME}/g"
132132
find .gitignore -type f -name"*" -print0| xargs -0 sed -i"s/Josee9988\/project-template/${NEW_USERNAME}\/${PROJECT_NAME}/g"
133133

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
136136
rm -r tests/2>/dev/null||:# remove the tests folder
137137
rm -r .github/workflows/2>/dev/null||:# remove the workflow folder
138138
writeREADME# write the new README.md
@@ -148,7 +148,7 @@ y | Y)
148148
fi
149149

150150
# self remove this script
151-
rm --"$0"
151+
rm --"$0"2>/dev/null||:
152152
;;
153153
n | N)
154154
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"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp