Check number of arguments

PHOTO EMBED

Wed Jun 09 2021 08:41:11 GMT+0000 (Coordinated Universal Time)

Saved by @dimitri9494 #linux #shell-script

if [ "$#" -ne 1 ]; then
  echo "Usage: $0 Path to binary file" >&2
  exit 1
fi
content_copyCOPY

This allow to test if the user executed the script parsing two arguments