style: use -n flag in head and tail commands (#10391)

Co-authored-by: Marc Cornellà <hello@mcornella.com>
This commit is contained in:
Kevin Burke 2021-11-09 00:04:10 -08:00 committed by GitHub
commit e86c6f5e7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 15 additions and 15 deletions

View file

@ -270,7 +270,7 @@ fi
# Determine the last recorded directory
if [[ -s ${SCD_HISTFILE} ]]; then
last_directory=${"$(tail -1 ${SCD_HISTFILE})"#*;}
last_directory=${"$(tail -n 1 ${SCD_HISTFILE})"#*;}
fi
# The "record" function adds its arguments to the directory index.