15 lines
249 B
Bash
Executable File
15 lines
249 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ "$1" != -S && "$1" != -S*u && "$1" != -U ]]; then
|
|
/usr/bin/pacman "$@"
|
|
exit $?
|
|
fi
|
|
|
|
[[ $EUID -eq 0 ]] && etckeeper pre-install
|
|
|
|
/usr/bin/pacman "$@"
|
|
EXIT_CODE=$?
|
|
|
|
[[ $EUID -eq 0 ]] && etckeeper post-install
|
|
exit $EXIT_CODE
|