Skip to content

Commit

Permalink
wc -l -le 1
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Sep 20, 2024
1 parent bc2b322 commit 58ea0f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion before-notebook.d/00_untar-home.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -eux
home="/home/${NB_USER}"

# Untar home archive file to restore home directory if it is empty
if [[ $(ls -A ${home} | wc -l) = "0" ]]; then
if [[ $(ls -A ${home} | wc -l) -le 1 ]]; then
if [[ ! -f $HOME_TAR ]]; then
echo "File $HOME_TAR does not exist!"
exit 1
Expand Down

0 comments on commit 58ea0f9

Please sign in to comment.