1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 18:34:48 +00:00

shellcheck fixes

This commit is contained in:
deadc0de6
2023-01-27 16:44:19 +01:00
committed by deadc0de
parent fd26eb89b3
commit 2f1bbeacee
135 changed files with 4083 additions and 3950 deletions

View File

@@ -34,11 +34,11 @@ dt_zsh="${compl}/_dotdrop-completion.zsh"
dt_bash="${compl}/dotdrop-completion.bash"
# generate for dotdrop.sh
cd ${cur}/..
cd "${cur}"/..
docopt-completion ./dotdrop.sh --manual-zsh
mv ./_dotdrop.sh ${dtsh_zsh}
mv ./_dotdrop.sh "${dtsh_zsh}"
docopt-completion ./dotdrop.sh --manual-bash
mv ./dotdrop.sh.sh ${dtsh_bash}
mv ./dotdrop.sh.sh "${dtsh_bash}"
# generate for dotdrop
vbin="virtualenv"
@@ -46,18 +46,19 @@ if ! hash ${vbin}; then
echo "\"${vbin}\" not found!"
exit 1
fi
cd ${cur}/..
cd "${cur}"/..
venv="/tmp/dotdrop-venv"
${vbin} -p python3 ${venv}
# shellcheck source=/dev/null
source ${venv}/bin/activate
python setup.py install
cd /tmp
docopt-completion dotdrop --manual-zsh
mv ./_dotdrop ${dt_zsh}
mv ./_dotdrop "${dt_zsh}"
docopt-completion dotdrop --manual-bash
mv ./dotdrop.sh ${dt_bash}
mv ./dotdrop.sh "${dt_bash}"
deactivate
rm -rf ${venv}
# pivot back
cd ${opwd}
cd "${opwd}"