16 lines
280 B
Bash
Executable File
16 lines
280 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
if [ "$#" -eq 0 ]; then
|
|
echo "마지막 커밋을 되돌립니다."
|
|
git revert --no-edit HEAD
|
|
else
|
|
echo "${1} 커밋을 되돌립니다."
|
|
git revert --no-edit "$1"
|
|
fi
|
|
|
|
python3 build.py
|
|
bash scripts/deploy.sh
|