Quote variables for safety.
This commit is contained in:
parent
02633947af
commit
94e1488446
1 changed files with 3 additions and 3 deletions
|
@ -80,20 +80,20 @@ function prompt_cloud_setup {
|
||||||
|
|
||||||
# Set the theme prefix to a cloud or to the user's given characters.
|
# Set the theme prefix to a cloud or to the user's given characters.
|
||||||
if [[ -n "$1" ]]; then
|
if [[ -n "$1" ]]; then
|
||||||
prefix=$1
|
prefix="$1"
|
||||||
else
|
else
|
||||||
prefix='☁'
|
prefix='☁'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Assign colors.
|
# Assign colors.
|
||||||
if [[ -n "$2" ]]; then
|
if [[ -n "$2" ]]; then
|
||||||
primary_color=$2
|
primary_color="$2"
|
||||||
else
|
else
|
||||||
primary_color='cyan'
|
primary_color='cyan'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "$3" ]]; then
|
if [[ -n "$3" ]]; then
|
||||||
secondary_color=$3
|
secondary_color="$3"
|
||||||
else
|
else
|
||||||
secondary_color='green'
|
secondary_color='green'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue