How would I tell a bash script to start over from the top?

后端 未结 5 386
迷失自我
迷失自我 2020-12-10 19:24

For example, in the below script startover starts back from the top:

##########################################################################
         


        
5条回答
  •  没有蜡笔的小新
    2020-12-10 20:24

    This is not good practice, but what you asked for.

    Put this at the end of your script. "$( cd "$( dirname "$0" )" && pwd )/$(basename $0)"

提交回复
热议问题