fix function run order (define $USER before it is used, not after)

This commit is contained in:
Mathieu Trossevin 2024-06-10 16:52:32 +02:00
parent 467ea511bc
commit cde2a04655
Signed by: mtrossevin
GPG key ID: D1DBB7EA828374E9
2 changed files with 3 additions and 1 deletions

View file

@ -15,6 +15,8 @@ and this project **does not adhere to [Semantic Versioning](http://semver.org/sp
### Fixed
* Define $USER before it is used
### Security
## [24.05] - 2024-05-15

View file

@ -545,10 +545,10 @@ set -u
HOSTNAME_TEXT=$(get_complete_hostname)
# TTY=$(get_tty)
# WHO=$(get_who)
USER=$(get_user)
IP=$(get_ip)
BEGIN_DATE=$(get_begin_date)
END_DATE=$(get_end_date)
USER=$(get_user)
PATH=${PATH}:/usr/sbin