1
0
Fork 0

Quote variables for safety.

pull/661/head
Kevin Laude 10 years ago
parent 02633947af
commit 94e1488446

@ -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…
Cancel
Save