Skip to content

Commit

Permalink
Enable updates to same major version
Browse files Browse the repository at this point in the history
  • Loading branch information
fatso83 committed Jan 30, 2022
1 parent 0dd4d93 commit 7f16cec
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions scripts/copy-documentation-for-new-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$SCRIPT_DIR/.."

#exit on error
set -e

if [[ $# != 1 ]]; then
echo "Usage: $0 <commitish>"
exit 1
Expand All @@ -17,14 +20,12 @@ function copy_source_to(){
local FILE_PATH="${DIR}.md"

if [ -e "$DIR" ]; then
echo "$DIR already exists, cannot continue"
exit 1
echo "$DIR already exists, removing it for update"
rm -r "$DIR"
fi

if [ -e "$FILE_PATH" ]
then
echo "$FILE_PATH already exists, cannot continue"
exit 1
if [ -e "$FILE_PATH" ]; then
rm -r "$FILE_PATH"
fi

echo "Copy $SOURCE_PATH to $DIR"
Expand Down

0 comments on commit 7f16cec

Please sign in to comment.