mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-10 15:12:01 -03:30
ncp-config: silence file not yet present warning
This commit is contained in:
parent
d52edc9a8e
commit
c9bdf0221a
@ -5,7 +5,7 @@
|
|||||||
NEED_UPDATE=false
|
NEED_UPDATE=false
|
||||||
VERFILE=/var/run/.ncp-latest-version
|
VERFILE=/var/run/.ncp-latest-version
|
||||||
|
|
||||||
[[ $( cat $VERFILE | wc -c ) -eq 0 ]] && ncp-check-version
|
[[ $( cat $VERFILE 2>/dev/null | wc -c ) -eq 0 ]] && ncp-check-version
|
||||||
|
|
||||||
if grep -qP "v\d+\.\d+\.\d+" $VERFILE; then
|
if grep -qP "v\d+\.\d+\.\d+" $VERFILE; then
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user