Skip to content

Commit cc4e05f

Browse files
committed
Remove CURRENTFILE variable
1 parent 5585908 commit cc4e05f

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

package/root/usr/local/sbin/pine64_update_package.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ fi
1616

1717
DEVICE="/dev/mmcblk0"
1818
URL="https://github.com/ayufan-pine64/linux-build/releases/download/$VERSION/linux-pine64-package-$VERSION.deb"
19-
CURRENTFILE="/var/lib/misc/pine64_update_package.status"
2019

2120
if [ "$(id -u)" -ne "0" ]; then
2221
echo "This script requires root."
@@ -32,11 +31,6 @@ cleanup() {
3231
}
3332
trap cleanup EXIT INT
3433

35-
CURRENT=""
36-
if [ -e "${CURRENTFILE}" ]; then
37-
CURRENT=$(cat $CURRENTFILE)
38-
fi
39-
4034
echo "Checking for update ..."
4135
FILENAME=$TEMP/$(basename ${URL})
4236

@@ -50,6 +44,4 @@ if [ -z "$MARK_ONLY" ]; then
5044
echo "Done - you should reboot now."
5145
else
5246
echo "Mark only."
53-
fi
54-
55-
echo $ETAG > "$CURRENTFILE"
47+
ficu

0 commit comments

Comments
 (0)