forked from evolix/evocheck
check_history: escape $HOME variable
This commit is contained in:
parent
f7570ec865
commit
1a2c3e0859
|
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- check_history: escape $HOME variable
|
||||||
|
|
||||||
## [22.11] - 2022-11-28
|
## [22.11] - 2022-11-28
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
|
@ -199,7 +199,7 @@ check_pkgmirror(){
|
||||||
check_history(){
|
check_history(){
|
||||||
file=/root/.profile
|
file=/root/.profile
|
||||||
# shellcheck disable=SC2015
|
# 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(){
|
check_vim(){
|
||||||
if ! is_installed vim; then
|
if ! is_installed vim; then
|
||||||
|
|
Loading…
Reference in a new issue