skip clone if repo mounted
Some checks failed
Some checks failed
This commit is contained in:
@@ -34,8 +34,9 @@ changeDir() {
|
||||
fi
|
||||
}
|
||||
|
||||
# Clone the git repo
|
||||
git clone "$REPO" /home/user/pkg && \
|
||||
if [ ! -d "/home/user/pkg" ]; then
|
||||
git clone "$REPO" /home/user/pkg || exit $?
|
||||
fi
|
||||
cd /home/user/pkg && \
|
||||
checkoutCommit && \
|
||||
applyPatch && \
|
||||
|
||||
Reference in New Issue
Block a user