Files
rengine/update.sh
T
AnonymousWP 542e1a5286 ops(update.sh): move back to root directory
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.
2023-10-12 20:25:53 +02:00

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