Issue details:
I have one sample script resides at Google Cloud storage (gs://URL) ( test.sh ) and it is having simple calculation script with two parameter hardcoded with value ( a=10, b=20 ) and getting sum output. The command I'm executing from Unix server as:
gsutil cat gs://sample-bkt/transaction_test/sample_scripts/test.sh | sh
and it is working fine.
Now if I'm trying to pass $1 and $2, then the above command is not working:
gsutil cat gs://sample-bkt/transaction_test/sample_scripts/test.sh 12 14 | sh
Any help/idea/suggestion is most welcome.
That sample code:
a=10 #Will be replaced by a=$1
b=20 #Will be replaced by b=$2
sum=$(( $a + $b ))
echo $sum