2022-12-14 11:28:25 +03:00
|
|
|
#!/bin/bash
|
2022-12-14 11:28:25 +03:00
|
|
|
set -Eeuo pipefail
|
2022-10-04 16:31:38 +03:00
|
|
|
|
|
|
|
echo "----- install deb package -----"
|
|
|
|
|
|
|
|
# install
|
2023-09-12 12:47:26 +03:00
|
|
|
deb_package=$(ls target/upload/hurl_*.deb)
|
2022-10-05 15:03:28 +03:00
|
|
|
echo "$deb_package"
|
2022-10-04 16:31:38 +03:00
|
|
|
install_dir="/tmp/hurl-deb-package"
|
|
|
|
mkdir -p "${install_dir}"
|
|
|
|
dpkg -x "${deb_package}" "${install_dir}"
|
|
|
|
|
|
|
|
# Return PATH var to parent shell
|
|
|
|
package_dir="${install_dir}/usr/bin"
|
2023-03-07 17:50:35 +03:00
|
|
|
echo "Run this if you want to use fresh built Hurl package:"
|
2022-10-04 16:31:38 +03:00
|
|
|
echo " export PATH=$package_dir:$PATH"
|
2022-12-14 11:28:25 +03:00
|
|
|
|