Bash script
If statement
if [ -f "README.md" ]thenecho "README.md exists"elif [ -f "CONTRIBUTING.md" ]thenecho "CONTRIBUTING.md exists"elseecho "Files not found"fi
If single line statement
if [ -f "/usr/bin/wine" ]; then export WINEARCH=win32; fiif ps aux | grep some_proces[s] > /tmp/test.txt; then echo 1; else echo 0; fi
[ -f "/usr/bin/wine" ] && export WINEARCH=win32
Loading comments...