Quote things that should be wrapped in quotes
This commit is contained in:
parent
d20e7b3523
commit
92cda8174c
1 changed files with 8 additions and 8 deletions
16
fetch
16
fetch
|
@ -480,7 +480,7 @@ getpackages () {
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Ubuntu"* | "Mint"* | "Debian"* | "Kali Linux"* | "Deepin Linux"* | "elementary"*)
|
"Ubuntu"* | "Mint"* | "Debian"* | "Kali Linux"* | "Deepin Linux"* | "elementary"*)
|
||||||
packages="$(dpkg --get-selections | grep -v deinstall$ | wc -l)"
|
packages="$(dpkg --get-selections | grep -cv deinstall$)"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Slackware"*)
|
"Slackware"*)
|
||||||
|
@ -934,7 +934,7 @@ getgtk () {
|
||||||
|
|
||||||
# Check for gtk2 theme
|
# Check for gtk2 theme
|
||||||
if [ -f "$HOME/.gtkrc-2.0" ]; then
|
if [ -f "$HOME/.gtkrc-2.0" ]; then
|
||||||
gtk2theme=$(grep "^[^#]*$name" $HOME/.gtkrc-2.0)
|
gtk2theme=$(grep "^[^#]*$name" "$HOME/.gtkrc-2.0")
|
||||||
|
|
||||||
elif [ -f "/etc/gtk-2.0/gtkrc" ]; then
|
elif [ -f "/etc/gtk-2.0/gtkrc" ]; then
|
||||||
gtk2theme=$(grep "^[^#]*$name" /etc/gtk-2.0/gtkrc)
|
gtk2theme=$(grep "^[^#]*$name" /etc/gtk-2.0/gtkrc)
|
||||||
|
@ -946,7 +946,7 @@ getgtk () {
|
||||||
gtk3theme=${gtk3theme//\'}
|
gtk3theme=${gtk3theme//\'}
|
||||||
|
|
||||||
elif [ -f "$HOME/.config/gtk-3.0/settings.ini" ]; then
|
elif [ -f "$HOME/.config/gtk-3.0/settings.ini" ]; then
|
||||||
gtk3theme=$(grep "^[^#]*$name" $HOME/.config/gtk-3.0/settings.ini)
|
gtk3theme=$(grep "^[^#]*$name" "$HOME/.config/gtk-3.0/settings.ini")
|
||||||
|
|
||||||
else
|
else
|
||||||
gtk3theme=$(grep "^[^#]*$name" /etc/gtk-3.0/settings.ini)
|
gtk3theme=$(grep "^[^#]*$name" /etc/gtk-3.0/settings.ini)
|
||||||
|
@ -1155,7 +1155,7 @@ getimage () {
|
||||||
|
|
||||||
# This checks to see if height is geater than width
|
# This checks to see if height is geater than width
|
||||||
# so we can do a better crop of portrait images.
|
# so we can do a better crop of portrait images.
|
||||||
if [ $height -gt $width ]; then
|
if [ "$height" -gt "$width" ]; then
|
||||||
size=$width
|
size=$width
|
||||||
else
|
else
|
||||||
size=$height
|
size=$height
|
||||||
|
@ -1216,10 +1216,10 @@ takescrot () {
|
||||||
info () {
|
info () {
|
||||||
# Call the function and update variable
|
# Call the function and update variable
|
||||||
if [ -z "$2" ]; then
|
if [ -z "$2" ]; then
|
||||||
get$1 2>/dev/null
|
"get$1" 2>/dev/null
|
||||||
eval output="\$${1}"
|
eval output="\$${1}"
|
||||||
else
|
else
|
||||||
get$2 2>/dev/null
|
"get$2" 2>/dev/null
|
||||||
eval output="\$${2}"
|
eval output="\$${2}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1283,7 +1283,7 @@ colors () {
|
||||||
}
|
}
|
||||||
|
|
||||||
color () {
|
color () {
|
||||||
printf "\e[38;5;${1}m"
|
printf "%b%s" "\e[38;5;${1}m"
|
||||||
}
|
}
|
||||||
|
|
||||||
bold () {
|
bold () {
|
||||||
|
@ -1499,7 +1499,7 @@ printf "\e[0H"
|
||||||
printinfo
|
printinfo
|
||||||
|
|
||||||
# Move the cursor to the bottom and Show the cursor
|
# Move the cursor to the bottom and Show the cursor
|
||||||
printf "\e[${lines}H\e[${prompt_height}A\e[?25h"
|
printf "%b%s" "\e[${lines}H\e[${prompt_height}A\e[?25h"
|
||||||
|
|
||||||
# Enable line wrap again
|
# Enable line wrap again
|
||||||
[ "$line_wrap" == "off" ] && printf "\e[?7h"
|
[ "$line_wrap" == "off" ] && printf "\e[?7h"
|
||||||
|
|
Loading…
Reference in a new issue