remove bollocks
This commit is contained in:
@@ -95,21 +95,7 @@ EOF
|
|||||||
rm "${FILE_PATH}.bak"
|
rm "${FILE_PATH}.bak"
|
||||||
}
|
}
|
||||||
|
|
||||||
ask_for_star() {
|
|
||||||
_print "${YELLOW}Would you like to support my work by starring my GitHub repo? yes/no [yes]: ${NC}"
|
|
||||||
local response
|
|
||||||
read -r response
|
|
||||||
response=${response:-yes} # Set default response to 'yes' if input is empty
|
|
||||||
if [[ "$response" =~ ^[Yy](es)?$ ]] || [[ -z "$response" ]]; then
|
|
||||||
if [[ "$OS" == "Darwin" ]]; then
|
|
||||||
open "https://github.com/dustinlyons/nixos-config"
|
|
||||||
else
|
|
||||||
xdg-open "https://github.com/dustinlyons/nixos-config"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
ask_for_star
|
|
||||||
|
|
||||||
# Fetch username from the system
|
# Fetch username from the system
|
||||||
export USERNAME=$(whoami)
|
export USERNAME=$(whoami)
|
||||||
|
|||||||
@@ -32,21 +32,7 @@ _prompt() {
|
|||||||
read -r $variable
|
read -r $variable
|
||||||
}
|
}
|
||||||
|
|
||||||
ask_for_star() {
|
|
||||||
_print "${YELLOW}Would you like to support my work by starring my GitHub repo? yes/no [yes]: ${NC}"
|
|
||||||
local response
|
|
||||||
read -r response
|
|
||||||
response=${response:-yes} # Set default response to 'yes' if input is empty
|
|
||||||
if [[ "$response" =~ ^[Yy](es)?$ ]] || [[ -z "$response" ]]; then
|
|
||||||
if [[ "$OS" == "Darwin" ]]; then
|
|
||||||
open "https://github.com/dustinlyons/nixos-config"
|
|
||||||
else
|
|
||||||
xdg-open "https://github.com/dustinlyons/nixos-config"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
ask_for_star
|
|
||||||
|
|
||||||
# Fetch username from the system
|
# Fetch username from the system
|
||||||
export USERNAME=$(whoami)
|
export USERNAME=$(whoami)
|
||||||
|
|||||||
Reference in New Issue
Block a user