replace -f with -d

This commit is contained in:
Vague Rabbit 2021-01-28 22:31:40 -08:00
parent 35c7d0e86f
commit 5c63427f8a

View file

@ -324,7 +324,7 @@ sudo ufw allow $API_PORT
# Make sure we're in the user's home directory
cd $HD
# Does the Saleor Dashboard already exist?
if [ -f "$HD/saleor" ]; then
if [ -d "$HD/saleor" ]; then
# Remove /saleor directory
sudo rm -R $HD/saleor
wait