0

I have a very simple bash script in which I want to call curl and pass it to variable, this is what I have:

#!/bin/bash

mycommand = "$(curl 'https://...')"
sleep 2
echo "$mycommand"

and yet, when I call it it returns

./testScripttry.sh: line 3: mycommand: command not found

what am I doing wrong here?

randomuser1
  • 2,733
  • 6
  • 32
  • 68

0 Answers0