support for a post-entrypoint script
All checks were successful
All checks were successful
This commit is contained in:
@@ -27,6 +27,12 @@ applyPatch() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
postEntrypoint() {
|
||||||
|
if [ -n "$POST" ] && [ -x post-entrypoint.sh ] ; then
|
||||||
|
./post-entrypoint.sh
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
changeDir() {
|
changeDir() {
|
||||||
if [ -n "$CD" ]
|
if [ -n "$CD" ]
|
||||||
then
|
then
|
||||||
@@ -41,10 +47,9 @@ if [ ! -d "$DIR" ]; then
|
|||||||
fi
|
fi
|
||||||
cd "$DIR" && \
|
cd "$DIR" && \
|
||||||
touch archery && \
|
touch archery && \
|
||||||
ls -al && \
|
|
||||||
checkoutCommit && \
|
checkoutCommit && \
|
||||||
applyPatch && \
|
applyPatch && \
|
||||||
sudo pacman -Syu --noconfirm --noprogressbar &&\
|
sudo pacman -Syu --noconfirm --noprogressbar &&\
|
||||||
makepkg -smf --noconfirm --noprogressbar --skippgpcheck --noarchive && \
|
makepkg -smf --noconfirm --noprogressbar --skippgpcheck --noarchive && \
|
||||||
ls -al
|
postEntrypoint
|
||||||
exit $?;
|
exit $?;
|
||||||
|
|||||||
Reference in New Issue
Block a user