fix(scripts): use safe temp directories and fix composer exit code

- install-ntfy.sh: use mktemp -d with cleanup trap instead of /tmp/ntfy_*
- install-git-crypt.sh: use mktemp -d with cleanup trap instead of /tmp/git-crypt
- install-composer.sh: only move composer.phar if installation succeeded
This commit is contained in:
2026-02-05 22:49:36 +02:00
parent b8070e2815
commit e8725c4b47
3 changed files with 16 additions and 13 deletions

View File

@@ -22,5 +22,7 @@ fi
php composer-setup.php --quiet
RESULT=$?
rm composer-setup.php
mv composer.phar ~/.local/bin/composer
if [ $RESULT -eq 0 ]; then
mv composer.phar ~/.local/bin/composer
fi
exit $RESULT