From 3192548e957e08378efc5d97fa90e4547a02a225 Mon Sep 17 00:00:00 2001 From: Chityanj Date: Tue, 19 May 2020 19:56:23 +0530 Subject: [PATCH] improve ota push no need to ask/enter zipname --- build/envsetup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/envsetup.sh b/build/envsetup.sh index 532ca085..47d6f3bf 100755 --- a/build/envsetup.sh +++ b/build/envsetup.sh @@ -715,9 +715,9 @@ function push_update(){( return 0 fi - # Ask the maintainer for login details + # Ask the maintainer Username read -p 'ODSN Username: ' uservar - read -p 'Zip name: ' zipvar + for s in $(echo $zipvar | tr "-" "\n") do @@ -732,7 +732,7 @@ function push_update(){( echo "Uploading build to ODSN" - scp $out_dir/$zipvar ${uservar}@storage.osdn.net:/storage/groups/r/re/revengeos/$target_device + scp $out_dir/RevengeOS-*.zip ${uservar}@storage.osdn.net:/storage/groups/r/re/revengeos/$target_device echo "Generating json"