diff options
author | Victor Engmark <victor@engmark.name> | 2022-11-29 19:21:26 +1300 |
---|---|---|
committer | Yt <happysalada@proton.me> | 2022-11-29 08:39:37 -0500 |
commit | 22d3b5a9e9ce78947bcf70fc970301708df0b7e4 (patch) | |
tree | cc8a382bd7ecb523aa3f063eb712bda32cf671b9 /doc/using/configuration.chapter.md | |
parent | 852ef6e9716b00e6400ee905ee80e62e11192e3c (diff) |
doc: Quote variable references
Diffstat (limited to 'doc/using/configuration.chapter.md')
-rw-r--r-- | doc/using/configuration.chapter.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/using/configuration.chapter.md b/doc/using/configuration.chapter.md index e121236c49628..1bf18eab5710d 100644 --- a/doc/using/configuration.chapter.md +++ b/doc/using/configuration.chapter.md @@ -310,16 +310,16 @@ For this to work fully, you must also have this script sourced when you are logg ```ShellSession #!/bin/sh -if [ -d $HOME/.nix-profile/etc/profile.d ]; then - for i in $HOME/.nix-profile/etc/profile.d/*.sh; do - if [ -r $i ]; then - . $i +if [ -d "${HOME}/.nix-profile/etc/profile.d" ]; then + for i in "${HOME}/.nix-profile/etc/profile.d/"*.sh; do + if [ -r "$i" ]; then + . "$i" fi done fi ``` -Now just run `source $HOME/.profile` and you can start loading man pages from your environment. +Now just run `source "${HOME}/.profile"` and you can start loading man pages from your environment. ### GNU info setup {#sec-gnu-info-setup} |