skeleton: PAGER without blank and unset at end of for loop
authorFlorian La Roche <F.LaRoche@pilz.de>
Tue, 5 Jun 2018 13:47:45 +0000 (15:47 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 5 Jun 2018 16:50:49 +0000 (18:50 +0200)
The PAGER environment variable is including a blank character at the
end. Remove this.
A for loop has been unsetting the variable inside the loop, this is only
needed once at the end of the loop.

Signed-off-by: Florian La Roche <F.LaRoche@pilz.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
system/skeleton/etc/profile

index 3a97427fdfa809a4a508d5a4bda3711e85dde645..1255d23ff40dfb398050402e807359de271a35a5 100644 (file)
@@ -8,7 +8,7 @@ if [ "$PS1" ]; then
        fi
 fi
 
-export PAGER='/bin/more '
+export PAGER='/bin/more'
 export EDITOR='/bin/vi'
 
 # Source configuration files from /etc/profile.d
@@ -16,5 +16,5 @@ for i in /etc/profile.d/*.sh ; do
        if [ -r "$i" ]; then
                . $i
        fi
-       unset i
 done
+unset i