We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40524b9 commit f0aaddcCopy full SHA for f0aaddc
1 file changed
tools/clean.sh
@@ -5,6 +5,26 @@ work_dir="${script_path}/work"
5
debug=false
6
only_work=false
7
8
+
9
+# 設定ファイルを読み込む
10
+# load_config [file1] [file2] ...
11
+load_config() {
12
+ local _file
13
+ for _file in ${@}; do
14
+ if [[ -f "${_file}" ]]; then
15
+ source "${_file}"
16
+ fi
17
+ done
18
+}
19
20
+work_dir="$(
21
+ load_config "${script_path}/default.conf"
22
+ load_config "${script_path}/custom.conf"
23
+ cd "${script_path}"
24
+ echo "$(realpath "${work_dir}")"
25
+)"
26
27
28
# Show an INFO message
29
# $1: message string
30
msg_info() {
0 commit comments