-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.sh
51 lines (36 loc) · 1.44 KB
/
config.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
# Enable strict mode
set -u
### Begin define variables ###
# Define the home directory of Bumpster
BUMPSTER_HOME="${BUMPSTER_HOME:-$HOME/.bumpster}"
# Global and local config file paths
global_config_file="$HOME/.bumpsterrc"
local_config_file="$(pwd)/.bumpsterrc"
# Define default log file name (can be overridden in .bumpsterrc)
default_log_file="bumpster.log"
log_file="$default_log_file"
# Define the bin directory
bin_dir="$BUMPSTER_HOME/bin"
# Default branch names
default_master_branch="main"
default_develop_branch="dev"
default_logging="false"
# Default behavior for feature branch management
delete_feature_branch_after_merge="${DELETE_FEATURE_BRANCH_AFTER_MERGE:-false}"
ask_before_deleting_feature_branch="${ASK_BEFORE_DELETING_FEATURE_BRANCH:-true}"
# Default branch to switch to after bump
AFTER_BUMP_BRANCH=${AFTER_BUMP_BRANCH:-"$default_master_branch"}
# Config variables (overridden by .bumpsterrc if present)
master_branch=""
develop_branch=""
logging_enabled=""
# URL to download the latest version of Bumpster
version_url="https://github.com/phoenixweiss/Bumpster/archive/refs/heads/main.tar.gz"
# Define remote version file location
remote_version_file="https://raw.githubusercontent.com/phoenixweiss/Bumpster/main/VERSION"
# Define version file location
local_version_file="$BUMPSTER_HOME/VERSION"
# Define the path to the Bumpster logo file
logo_file="$BUMPSTER_HOME/lib/BUMPSTER_LOGO.ASCII"
### End define variables ###