We don't want any output of ls, just the return code

Co-authored-by: Kayou <pierre@kayou.io>
This commit is contained in:
Alexandre Aubin 2021-01-28 00:29:38 +01:00 committed by GitHub
parent 0606df529b
commit b6b33d99de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
debian/postinst vendored
View file

@ -9,7 +9,7 @@ do_configure() {
# If apps/ is not empty, we're probably already installed in the past and
# something funky happened ...
if [ -d /etc/yunohost/apps/ ] && ls /etc/yunohost/apps/* 2>/dev/null
if [ -d /etc/yunohost/apps/ ] && ls /etc/yunohost/apps/* >/dev/null 2>&1
then
echo "Sounds like /etc/yunohost/installed mysteriously disappeared ... You should probably contact the Yunohost support ..."
else