mirror of
https://github.com/v2board/v2board.git
synced 2025-07-20 06:29:13 +08:00
update: more api
This commit is contained in:
@ -1,5 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ! -d ".git" ]; then
|
||||
echo "Please deploy using Git."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! command -v git &> /dev/null; then
|
||||
echo "Git is not installed! Please install git and try again."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git config --global --add safe.directory $(pwd)
|
||||
git fetch --all && git reset --hard origin/dev && git pull origin dev
|
||||
git checkout dev
|
||||
rm -rf composer.lock composer.phar
|
||||
|
Reference in New Issue
Block a user