One of my favorite conditional statement from one of my shell scripts. f [ -n "$...

@pronounshe@lgbtqia.space

One of my favorite conditional statement from one of my shell scripts.

f [ -n "$sl" ] ; then
if [[ ! -d "$vdir"/"$sl" ]]; then
printf "\n\33[1;34m$sl\33[0m does not exist.\n"
read -p "Create it? " yn
if [ $yn = y ] ; then
mkdir $HOME/Videos/"$sl"
vdir=$HOME/Videos/"$sl"
fi
else
vdir=$HOME/Videos/"$sl"
printf "\nSaving $aud1 to $vdir\n"
fi
else
printf "\nSaving $aud1 to $vdir\n"
fi