We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da9aeb6 commit ac93bd9Copy full SHA for ac93bd9
scripts/copy-documentation-for-new-release.sh
@@ -36,14 +36,14 @@ function copy_source_to(){
36
37
# Remove .gitignore'd files from copies
38
# Otherwise they will remain on the local filesytem
39
- rm -r "$DIR/examples/node_modules"
40
- rm "$DIR/examples/package-lock.json"
+ rm -rf "$DIR/examples/node_modules"
+ rm -f "$DIR/examples/package-lock.json"
41
42
# replace `release_id: master` with `release_id: $FULL_VERSION` in
43
# $FILE_PATH
44
sed -i.bak "s/release_id: master/release_id: $FULL_VERSION/g" "$FILE_PATH"
45
sed -i.bak "s/sort_id: master/sort_id: $MAJOR_VERSION/g" "$FILE_PATH"
46
- rm "$FILE_PATH.bak"
+ rm -f "$FILE_PATH.bak"
47
48
git add "$DIR"
49
git add "$FILE_PATH"
0 commit comments