Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 386 Bytes

File metadata and controls

11 lines (8 loc) · 386 Bytes

Checking variable Existance

ARITHMETIC OPERATIONS --- HOME --- LOCATING COMMANDS

If the variable is not defined, the script will stop executing BASH command,

${varName:?Error, varName not declared or is empty}
  • Useful for sanity checking
  • Script will stop executing if variable is not defined.