diff --git a/openbsd/CHANGELOG b/openbsd/CHANGELOG index 1eb421e..ec4e8fe 100644 --- a/openbsd/CHANGELOG +++ b/openbsd/CHANGELOG @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- check_history: escape $HOME variable + ## [22.11] - 2022-11-28 ### Changed diff --git a/openbsd/evocheck.sh b/openbsd/evocheck.sh index c8a0580..8d67daa 100755 --- a/openbsd/evocheck.sh +++ b/openbsd/evocheck.sh @@ -199,7 +199,7 @@ check_pkgmirror(){ check_history(){ file=/root/.profile # shellcheck disable=SC2015 - grep -qE "^HISTFILE=\$HOME/.histfile" $file && grep -qE "^export HISTSIZE=100000" $file || failed "IS_HISTORY" "Make sure both 'HISTFILE=$HOME/.histfile' and 'export HISTSIZE=100000' are present in /root/.profile" + grep -qE "^HISTFILE=\$HOME/.histfile" $file && grep -qE "^export HISTSIZE=100000" $file || failed "IS_HISTORY" "Make sure both 'HISTFILE=\$HOME/.histfile' and 'export HISTSIZE=100000' are present in /root/.profile" } check_vim(){ if ! is_installed vim; then