What happened?
In an sls repo create a service directory with a file named service/bin/init.sh.
run ./gradlew distTar
Find that the resulting tar has two init.sh files in the tar.
$ tree service/
service/
└── bin
├── health-server.py
├── init.sh
tar tf build/distributions/....sls.tgz | grep init.sh
.../service/bin/init.sh
.../service/bin/init.sh
What did you want to happen?
I would expect that I would have only one init.sh file in the resulting tar, the one that I put in the folder service/bin/init.sh in the git repo.
I think this plugin should intelligently disable the createInitScript task if the file exists, or the createInitScript task should intelligently use the one on disk rather then creating it.