mirror of
https://github.com/zuno/slackpkgplus
synced 2024-12-27 09:58:34 +01:00
Removed a warning when the pkglist does not exists
This commit is contained in:
parent
d636db3f82
commit
957005081b
1 changed files with 1 additions and 1 deletions
|
@ -664,7 +664,7 @@ function showlist() {
|
|||
fi
|
||||
done
|
||||
|
||||
if [ $[$(date +%s)-$(date -d "$(ls -l --full-time $WORKDIR/pkglist|awk '{print $6,$7,$8}')" +%s)] -gt 86400 -a "$CMD" != "update" ];then
|
||||
if [ $[$(date +%s)-$(date -d "$(ls -l --full-time $WORKDIR/pkglist 2>/dev/null|awk '{print $6,$7,$8}')" +%s)] -gt 86400 -a "$CMD" != "update" ];then
|
||||
echo
|
||||
echo "NOTICE: pkglist is older than 24h; you are encouraged to re-run 'slackpkg update'"
|
||||
echo
|
||||
|
|
Loading…
Reference in a new issue