mirror of
https://github.com/darlinghq/darling.git
synced 2024-11-27 06:10:36 +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