hurl/bin/release/install_deb_package.sh

18 lines
423 B
Bash
Executable File

#!/bin/bash
set -Eeuo pipefail
echo "----- install deb package -----"
# install
deb_package=$(ls target/upload/hurl_*.deb)
echo "$deb_package"
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"
echo "Run this if you want to use fresh built Hurl package:"
echo " export PATH=$package_dir:$PATH"