mirror of
https://github.com/darlinghq/darling.git
synced 2024-11-23 12:19:43 +00:00
parent
e373a28a1f
commit
44cddf5e36
@ -25,12 +25,15 @@ DARLING_PREFIX=$(realpath "$SCRIPTPATH/..")
|
||||
selfmtime=$(stat -c %Y "$DARLING_PREFIX/bin/darling")
|
||||
|
||||
check_prefix() {
|
||||
if [ ! -d "$DPREFIX" -o ! -f "$DPREFIX/.prefix-version" ]; then
|
||||
setup_prefix "$DPREFIX"
|
||||
fi
|
||||
|
||||
if [ "$(cat $DPREFIX/.prefix-version)" -lt $MINIMUM_PREFIX_VERSION ]; then
|
||||
if [ ! -d "$DPREFIX" -o ! -f "$DPREFIX/.update-timestamp" ]; then
|
||||
setup_prefix "$DPREFIX"
|
||||
else
|
||||
|
||||
updatets=$(cat $DPREFIX/.update-timestamp)
|
||||
if [ "$updatets" != "disable" -a "$updatets" -lt $selfmtime ]; then
|
||||
setup_prefix "$DPREFIX"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user