OSDN Git Service

[update] : Use msg.sh for the error of default config
authorhayao <shun819.mail@gmail.com>
Wed, 7 Oct 2020 09:51:48 +0000 (18:51 +0900)
committerhayao <shun819.mail@gmail.com>
Wed, 7 Oct 2020 09:51:48 +0000 (18:51 +0900)
allarch.sh
build.sh

index 57ff116..c4e1c37 100755 (executable)
@@ -27,7 +27,7 @@ alteriso_version="3.0"
 if [[ -f "${defaultconfig}" ]]; then
     source "${defaultconfig}"
 else
-    echo "${defaultconfig} was not found."
+    "${script_path}/tools/msg.sh" -a 'allarch.sh' error "${defaultconfig} was not found."
     exit 1
 fi
 
index 695be71..7d8e15b 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -27,7 +27,7 @@ alteriso_version="3.0"
 if [[ -f "${defaultconfig}" ]]; then
     source "${defaultconfig}"
 else
-    echo "${defaultconfig} was not found."
+    "${script_path}/tools/msg.sh" -a 'build.sh' error "${defaultconfig} was not found."
     exit 1
 fi