mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-13 04:52:54 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user