push_packages.sh read -s for hiding input in terminal

This commit is contained in:
Timerix22 2022-12-08 22:45:06 +06:00
parent e2bfcab0b5
commit decc2cecc4

View File

@ -1,9 +1,9 @@
#!/usr/bin/bash #!/usr/bin/bash
echo enter github api key: echo enter github api key:
read -r GHK read -rs GHK
echo enter nuget api key: echo enter nuget api key:
read -r NGK read -rs NGK
for PACK in $(find ./nuget -name '*.nupkg'); do for PACK in $(find ./nuget -name '*.nupkg'); do
dotnet nuget push $PACK -k $GHK -s github --skip-duplicate dotnet nuget push $PACK -k $GHK -s github --skip-duplicate