mirror of
https://gitlab.com/ProcyonLotor/vrchat-template.git
synced 2026-08-25 10:43:53 +05:00
Updated shell scripts again
This commit is contained in:
@@ -5,12 +5,13 @@ repository="$(dirname "$(readlink -f "$0")")/."
|
||||
cd "${repository}"
|
||||
git rev-parse --is-inside-work-tree >/dev/null
|
||||
|
||||
echo "The following files were changed and will be reverted:"
|
||||
echo ""
|
||||
echo "*** WARNING: The following files were changed and will be reverted:"
|
||||
git diff --name-only HEAD
|
||||
|
||||
printf "\nExecute [Y,N]?"; read -r yn
|
||||
if [ "$yn" = "${yn#[Yy]}" ]; then
|
||||
echo "Aborting restore..."
|
||||
echo "Aborting discard..."
|
||||
else
|
||||
git restore "${repository}"
|
||||
echo "Done."
|
||||
|
||||
Reference in New Issue
Block a user