nushell-plugins/collect-install.sh

13 lines
272 B
Bash
Executable File

#!/usr/bin/env bash
ORG=$(pwd)
[ -r env ] && . ./env
[ -z "$TARGET_PATH" ] && echo "Check env values && exit 1
[ -z "$INSTALL_BIN_PATH" ] && echo "Check env values && exit 1
cd $TARGET_PATH || exit 1
[ -x collect-install.sh ] && ./collect-install.sh
cd $ORG || exit 1