Fiz missing y/n question for p i
This commit is contained in:
@@ -68,7 +68,7 @@ p() {
|
|||||||
return 0
|
return 0
|
||||||
elif [ $1 == "i" ]; then # If first parameter is i (install)
|
elif [ $1 == "i" ]; then # If first parameter is i (install)
|
||||||
echo -e "${GREEN}"[+] Searching for $2 on the distro repos..."${ENDCOLOR}"
|
echo -e "${GREEN}"[+] Searching for $2 on the distro repos..."${ENDCOLOR}"
|
||||||
$install $2 2>/dev/null
|
$install $2
|
||||||
if [ $? == 0 ]; then
|
if [ $? == 0 ]; then
|
||||||
echo -e "${GREEN}"[i] $2 installed."${ENDCOLOR}"
|
echo -e "${GREEN}"[i] $2 installed."${ENDCOLOR}"
|
||||||
return 0
|
return 0
|
||||||
@@ -89,7 +89,7 @@ p() {
|
|||||||
fi
|
fi
|
||||||
elif [ $1 == "r" ]; then # If first parameter is r (remove)
|
elif [ $1 == "r" ]; then # If first parameter is r (remove)
|
||||||
echo -e "${YELLOW}"[+] Removing $2..."${ENDCOLOR}"
|
echo -e "${YELLOW}"[+] Removing $2..."${ENDCOLOR}"
|
||||||
$remove $2 2>/dev/null
|
$remove $2
|
||||||
if [ $? == 0 ]; then
|
if [ $? == 0 ]; then
|
||||||
echo -e "${GREEN}"[i] $2 removed."${ENDCOLOR}"
|
echo -e "${GREEN}"[i] $2 removed."${ENDCOLOR}"
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in New Issue
Block a user