Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorMichael Schuster <michael@schuster.ms>2020-07-21 02:20:19 +0300
committerMichael Schuster <michael@schuster.ms>2020-07-21 02:20:19 +0300
commitb801a742811afb0c2bab96c8fea0a584933535e2 (patch)
treef5fb0fe3835821da118ac832c657854757d1d952 /admin
parent8fb272a95f07724f96b26440165334405ef009f7 (diff)
Drone Upload: Fix if condition for master, in addition to #2213
Don't try to comment on master (old condition was from a previous version of the script). Signed-off-by: Michael Schuster <michael@schuster.ms>
Diffstat (limited to 'admin')
-rwxr-xr-xadmin/linux/upload-appimage.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/linux/upload-appimage.sh b/admin/linux/upload-appimage.sh
index d23714108..e008b36a8 100755
--- a/admin/linux/upload-appimage.sh
+++ b/admin/linux/upload-appimage.sh
@@ -34,7 +34,7 @@ echo "Found AppImage: $BASENAME"
apt-get -y install jq
-if [[ "$TAG_NAME" != *.master ]]; then
+if [ $TAG_NAME != "master" ]; then
# Delete all old comments in desktop PR, starting with "AppImage file:"
oldComments=$(curl 2>/dev/null -u $GIT_USERNAME:$GIT_TOKEN -X GET $DESKTOP_API_BASE_URL/issues/$PR/comments | jq '.[] | (.id |tostring) + "|" + (.user.login | test("'${GIT_USERNAME}'") | tostring) + "|" + (.body | test("AppImage file:.*") | tostring)' | grep "true|true" | tr -d "\"" | cut -f1 -d"|")
@@ -128,7 +128,7 @@ if [[ "$browserDownloadUrl" == "null" ]]; then
exit 3
fi
-if [[ "$TAG_NAME" != *.master ]]; then
+if [ $TAG_NAME != "master" ]; then
# Create comment in desktop PR
curl 2>/dev/null -u $GIT_USERNAME:$GIT_TOKEN -X POST $DESKTOP_API_BASE_URL/issues/$PR/comments -d "{ \"body\" : \"AppImage file: [$BASENAME]($browserDownloadUrl) <br/><br/>To test this change/fix you can simply download above AppImage file and test it. <br/><br/>Please make sure to quit your existing Nextcloud app and backup your data. \" }"
fi