To debug the shell script , you can use the below command.
v --> Verbose x --> Debugging
set -vx
spo
best, recovery, expert