But, you can still use the variable like a boolean in shell scripts. Store a sample string “true” to a variable and match it with the if condition. This works similarly to boolean.

So, even if the shell script doesn’t offer the data types, but we can still use the normal variable with similar working.