From f69f99008217bb17338ee8a108391bef3d3b95d0 Mon Sep 17 00:00:00 2001 From: emmett1 Date: Wed, 29 Jan 2025 01:09:38 +0800 Subject: update scripts --- repos/update.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 repos/update.sh (limited to 'repos/update.sh') diff --git a/repos/update.sh b/repos/update.sh new file mode 100755 index 00000000..49c93acf --- /dev/null +++ b/repos/update.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +for i in $(awk '{print $1}' outdate.list); do + [ -d $i ] || continue + nv=$(grep ^"$i " outdate.list | awk '{print $2}') + ov=$(grep ^"$i " outdate.list | awk '{print $3}') + read -p "Update $i $ov to $nv " aaa + case $aaa in + n|N|no|NO|No|nO) continue;; + *) ./pkgup.sh $i $nv;; + esac +done -- cgit v1.2.3