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