We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3a102c commit 34397acCopy full SHA for 34397ac
setup.sh
@@ -26,9 +26,18 @@ prompt_input() {
26
exit_gracefully() {
27
if [ "$revert_on_exit" = true ]; then
28
echo -e "\n\033[31mAborting Setup:\033[0m"
29
+
30
+ # Revert to initial commit
31
echo -e " Reverting changes to initial commit:"
32
execute_command "git reset --hard $(git rev-list --max-parents=0 HEAD)"
33
execute_command "git clean -fd"
34
35
+ # Remove .pixi directory if it exists
36
+ if [ -d ".pixi" ]; then
37
+ echo -e " Removing .pixi directory:"
38
+ execute_command "rm -rf .pixi"
39
+ fi
40
41
revert_on_exit=false
42
exit 1
43
fi
0 commit comments