disable shellcheck error
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
c9553af8b9
commit
5dd5e287d0
@ -39,6 +39,7 @@ if [ "$1" == "testsystem" ]; then
|
|||||||
if [ "$2" == "update" ]; then
|
if [ "$2" == "update" ]; then
|
||||||
NEW_CREDENTIALS=$(zenity --forms --title="Обновление доступов тестовой системы" --text="Введите доступы к тестовой системе" --add-entry="API URL" --add-entry="API-ключ")
|
NEW_CREDENTIALS=$(zenity --forms --title="Обновление доступов тестовой системы" --text="Введите доступы к тестовой системе" --add-entry="API URL" --add-entry="API-ключ")
|
||||||
if [ $? == 0 ]; then
|
if [ $? == 0 ]; then
|
||||||
|
# shellcheck disable=SC2046
|
||||||
echo "$NEW_CREDENTIALS|$(curl -fsSL $(echo "$NEW_CREDENTIALS" | cut -d'|' -f1 | tr -d '\n')/api/system-info | jq -j '.technicalUrl')" > "$TEST_SYSTEM_CREDENTIALS_FILE"
|
echo "$NEW_CREDENTIALS|$(curl -fsSL $(echo "$NEW_CREDENTIALS" | cut -d'|' -f1 | tr -d '\n')/api/system-info | jq -j '.technicalUrl')" > "$TEST_SYSTEM_CREDENTIALS_FILE"
|
||||||
notify-send -h int:transient:1 -u normal -t 1000 -i dialog-password "Данные тестовой системы обновлены"
|
notify-send -h int:transient:1 -u normal -t 1000 -i dialog-password "Данные тестовой системы обновлены"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user