aboutsummaryrefslogtreecommitdiff
path: root/snag/scripts/run_pkg_build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'snag/scripts/run_pkg_build.sh')
-rwxr-xr-xsnag/scripts/run_pkg_build.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/snag/scripts/run_pkg_build.sh b/snag/scripts/run_pkg_build.sh
index 3e4b867..5b98cfd 100755
--- a/snag/scripts/run_pkg_build.sh
+++ b/snag/scripts/run_pkg_build.sh
@@ -14,11 +14,19 @@ fi
api_send=$1
api_recv=$2
+getvar() {
+ eval "printf '\x03\x00\x00\x00$1' >&$api_send"
+ IFS= read -r data 0<&"$api_recv"
+ echo "$data"
+}
+
# should remove
eval "printf '\x02\x00\x00\x00' >&$api_send"
IFS= read -r data 0<&"$api_recv"
echo "data=$data"
+root=$(getvar root)
+
# load the description script
. $3