[fix] deploy:add shebang

This commit is contained in:
roydfalk 2024-06-23 11:43:45 +02:00
parent 4a82f2cb00
commit 6cebec2348

View file

@ -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}"