mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-08-17 19:35:42 +02:00
14 lines
432 B
Bash
Executable File
14 lines
432 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "Do you want to apply your local changes after updating? (y/n)"
|
|
read answer
|
|
answer=$(echo $answer | tr '[:upper:]' '[:lower:]')
|
|
|
|
if [[ $answer == "y" ]]; then
|
|
make down && git stash save && git pull && git stash apply && make build && make up
|
|
elif [[ $answer == "n" ]]; then
|
|
make down && git stash && git stash drop && git pull && make build && make up
|
|
else
|
|
echo "Invalid input. Please enter 'y' or 'n'."
|
|
fi
|