aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcommon.sh27
-rwxr-xr-xreleasevars.sh13
2 files changed, 28 insertions, 12 deletions
diff --git a/common.sh b/common.sh
new file mode 100755
index 0000000..fce719b
--- /dev/null
+++ b/common.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+#
+# Copyright (C) 2021 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+set_color()
+{
+ if [ "$COLOR" = "1" ] ; then
+ color_start="\033[36m"
+ color_end="\033[0m"
+ else
+ color_start=""
+ color_end=""
+ fi
+}
diff --git a/releasevars.sh b/releasevars.sh
index 8548b96..f2ba2ee 100755
--- a/releasevars.sh
+++ b/releasevars.sh
@@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
+. common.sh
RELEASE=""
@@ -90,14 +90,3 @@ SECURITY="$RELEASE_DIR/security"
SCRIPTS="$RELEASE_DIR/scripts"
TOOLS="$RELEASE_DIR/tools"
IMAGES="$RELEASE_DIR/images"
-
-set_color () {
- if [ "$COLOR" = "1" ]
- then
- color_start="\033[36m"
- color_end="\033[0m"
- else
- color_start=""
- color_end=""
- fi
-}