Skip to content

Commit

Permalink
Merge pull request #24 from RandomCoderOrg/custom-scripts
Browse files Browse the repository at this point in the history
feat: add support to execute scripts
  • Loading branch information
SaicharanKandukuri authored Apr 11, 2023
2 parents 7495183 + eab97c7 commit c56aee3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions plugins/envsetup
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,17 @@ run_cmd() {
do_chroot_ae "$chroot_dir" "$command"
}

run_shell_script() {
lshout "Running script: $1"
echo
echo
local script=$1
cp -v "$script" "$chroot_dir"
chmod +x "$chroot_dir/$(basename $script)"
do_chroot_ae "$chroot_dir" /bin/bash "/$script"
echo "Done running script: $1"
}

install_pkg()
{
pkg_name="$*"
Expand Down

0 comments on commit c56aee3

Please sign in to comment.