mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-09-20 08:47:43 +02:00
Because the `make` commands need to be executed in the same directory as where the Makefile is located, putting `update.sh` is not going to work. This commit moves the `update.sh` file back to the root directory.
13 lines
380 B
Bash
13 lines
380 B
Bash
#!/bin/bash
|
|
|
|
echo "Do you want to apply your local changes after updating? (y/n)"
|
|
read answer
|
|
|
|
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
|