Ho un'istruzione if in un file bash:
if [ -f bin/post_compile ]; then
echo "-----> Running post-compile hook"
chmod +x bin/post_compile
sub-env bin/post_compile
fi
cosa -fsignifica?
[something]è equivalente a test something. Come dice @Cyrus, cerca testdigitando help test.
help test | grep -- -f