Skip to content

Commit

Permalink
Use "test -s" instead of testing file availability and size.
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Lamb <lamby@debian.org>
  • Loading branch information
lamby committed Sep 30, 2008
1 parent c5a18e7 commit 56d7b4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/live-bottom/06hostname
Expand Up @@ -41,7 +41,7 @@ else
fi

# Create /etc/hosts only if it is not present or empty
if [ ! -f /root/etc/hosts ] || [ "$(/root/usr/bin/stat -c %s root/etc/hosts)" == "0" ]
if [ ! -s /root/etc/hosts ]
then
cat > /root/etc/hosts << EOF
127.0.0.1 localhost
Expand Down

0 comments on commit 56d7b4e

Please sign in to comment.