I want to create a update function for my bash script so that in the future any changes I commit to the script which is stored on github can be updated by the end-users. I can't find any example of an update function for bash.

if I just make a function like so:

```
function update(){
  git clone https://path/to/my/repo.git
}

```

It simply creates another copy of my repo in the present directory that I'm in. Adding a path directly to the script doesn
t work either. How can I make it happen?