[fix] deploy:add shebang
This commit is contained in:
parent
4a82f2cb00
commit
6cebec2348
1 changed files with 2 additions and 1 deletions
|
@ -11,6 +11,7 @@ if [ $# -ge 1 ] ; then path_bin=$1 && shift ; else path_bin="/usr/local/bin/mond
|
||||||
|
|
||||||
mkdir --parents ${dir_target}
|
mkdir --parents ${dir_target}
|
||||||
cp --recursive ${dir_build}/* ${dir_target}/
|
cp --recursive ${dir_build}/* ${dir_target}/
|
||||||
echo "cd ${dir_target} && python3 main.py \$@" > ${path_bin}
|
echo "#!/usr/bin/env bash" > ${path_bin}
|
||||||
|
echo "cd ${dir_target} && python3 main.py \$@" >> ${path_bin}
|
||||||
chmod +x ${path_bin}
|
chmod +x ${path_bin}
|
||||||
echo "-- ${path_bin}"
|
echo "-- ${path_bin}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue