Files
wofi_alt/install.sh
T

18 lines
487 B
Bash
Executable File

#!/usr/bin/env bash
if ! test -f style.css; then
echo "style.css does not exist."
echo "Copying from example..."
cp style.css.example style.css
else
echo "style.css already exists."
read -p "Should it be replaced? [y/N]: " answer
# Using modern [[ ]] for string comparison is safer in Bash
if [[ "$answer" == "y" || "$answer" == "Y" ]]; then
cp style.css.example style.css
echo "File replaced."
else
echo "Skipped."
fi
fi