Skip to content

Commit c56aee3

Browse files
Merge pull request #24 from RandomCoderOrg/custom-scripts
feat: add support to execute scripts
2 parents 7495183 + eab97c7 commit c56aee3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

plugins/envsetup

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,17 @@ run_cmd() {
442442
do_chroot_ae "$chroot_dir" "$command"
443443
}
444444

445+
run_shell_script() {
446+
lshout "Running script: $1"
447+
echo
448+
echo
449+
local script=$1
450+
cp -v "$script" "$chroot_dir"
451+
chmod +x "$chroot_dir/$(basename $script)"
452+
do_chroot_ae "$chroot_dir" /bin/bash "/$script"
453+
echo "Done running script: $1"
454+
}
455+
445456
install_pkg()
446457
{
447458
pkg_name="$*"

0 commit comments

Comments
 (0)