2

Here's the code snippet:

if [ -f artisan ]
then
   php artisan migrate --force
fi

What does the -f do in the if statement? Is is asking whether the batch file was invoked with artisan as a parameter? Or perhaps checking to see that the artisan file is found in the current directory? How exactly does it work?

DatsunBing
  • 8,684
  • 17
  • 87
  • 172

1 Answers1

-1

If the file artisan exists, then go on doing the migration.

Credit @the-alpha who wrote this as an comment