Skip to content

Commit

Permalink
Update startup
Browse files Browse the repository at this point in the history
  • Loading branch information
dnkmmr69420 authored May 31, 2024
1 parent 6cfd7a4 commit 38dd935
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions bin/startup
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

GUMREADVAR=$(gum choose "brave stable" "brave beta" "brave nightly" "update system" "shell" "exit to host")
GUMREADVAR=$(gum choose "brave stable" "brave beta" "brave nightly" "update system" "export brave" "unexport brave" "shell")

if [ "$GUMREADVAR" = "brave stable" ];
then
Expand All @@ -27,14 +27,19 @@ then
exec startup
fi

if [ "$GUMREADVAR" = "export brave" ];
then
/usr/local/bin/export-brave
exec startup
fi

if [ "$GUMREADVAR" = "shell" ];
if [ "$GUMREADVAR" = "unexport brave" ];
then
/bin/bash
/usr/local/bin/unexport-brave
exec startup
fi

if [ "$GUMREADVAR" = "exit to host" ];
if [ "$GUMREADVAR" = "shell" ];
then
exit
fi

0 comments on commit 38dd935

Please sign in to comment.