You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo" -r Refresh all keys, will remove all trusted keys and clear the keyring, allowing for old keys to removed and keys entries to be updated. This result is not reproducable."
13
+
echo" -h Show this help page."
14
+
}
15
+
16
+
whilegetopts'rh' flag;do
17
+
case"${flag}"in
18
+
r) refresh_all_keys_flag=true ;;
19
+
*) print_usage
20
+
exit 1 ;;
21
+
esac
22
+
done
23
+
8
24
# Disable daemon since it causes problems with the temp dir cleanup
9
25
# regardless if stopped.
10
26
GRADLE_OPTS="-Dorg.gradle.daemon=false"
@@ -68,7 +84,20 @@ echo "Removing old components..."
68
84
sed -i '/<components>/,/<\/components>/d' verification-metadata.xml
69
85
echo""
70
86
71
-
echo"Generating new trusted keys..."
87
+
88
+
if [ "$refresh_all_keys_flag"=true ];then
89
+
echo"Refreshing all keys"
90
+
91
+
echo"Removing old trusted keys..."
92
+
sed -i '/<trusted-keys>/,/<\/trusted-keys>/d' verification-metadata.xml
93
+
echo""
94
+
95
+
echo"Removing old keyring..."
96
+
rm verification-keyring.keys
97
+
echo""
98
+
fi
99
+
100
+
echo"Generating new trusted keys & updating keyring..."
0 commit comments