[Android] buildsystem: fix compile-remoteaccess indentation

Steve Lhomme git at videolan.org
Tue Jun 24 09:00:30 UTC 2025


vlc-android | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Jun 13 07:57:34 2025 +0200| [29fb433a270cadd37af9e13ceff1e0dbeee48a91] | committer: Steve Lhomme

buildsystem: fix compile-remoteaccess indentation

> https://code.videolan.org/videolan/vlc-android/commit/29fb433a270cadd37af9e13ceff1e0dbeee48a91
---

 buildsystem/compile-remoteaccess.sh | 46 ++++++++++++++++++-------------------
 1 file changed, 23 insertions(+), 23 deletions(-)

diff --git a/buildsystem/compile-remoteaccess.sh b/buildsystem/compile-remoteaccess.sh
index 1e88d87dd2..bd13fb00c1 100755
--- a/buildsystem/compile-remoteaccess.sh
+++ b/buildsystem/compile-remoteaccess.sh
@@ -55,35 +55,35 @@ done
 ##############################
 # Retrieve the remote access #
 ##############################
-  diagnostic "Setting up the Remote Access project"
+diagnostic "Setting up the Remote Access project"
 
-  REMOTE_ACCESS_TESTED_HASH=bc7a94b38ca21739e21ba3f76dab09909d75a695
-  REMOTE_ACCESS_REPOSITORY=https://code.videolan.org/videolan/remoteaccess
+REMOTE_ACCESS_TESTED_HASH=bc7a94b38ca21739e21ba3f76dab09909d75a695
+REMOTE_ACCESS_REPOSITORY=https://code.videolan.org/videolan/remoteaccess
 
-  : ${VLC_REMOTE_ACCESS_PATH:="$(pwd -P)/application/remote-access-client/remoteaccess"}
-  diagnostic "VLC_REMOTE_ACCESS_PATH is $VLC_REMOTE_ACCESS_PATH"
+: ${VLC_REMOTE_ACCESS_PATH:="$(pwd -P)/application/remote-access-client/remoteaccess"}
+diagnostic "VLC_REMOTE_ACCESS_PATH is $VLC_REMOTE_ACCESS_PATH"
 
-  if [ ! -d "$VLC_REMOTE_ACCESS_PATH" ] || [ ! -d "$VLC_REMOTE_ACCESS_PATH/.git" ]; then
-      diagnostic "Remote access sources: not found, cloning"
-      branch="main"
-      if [ ! -d "$VLC_REMOTE_ACCESS_PATH" ]; then
-          git clone --single-branch --branch ${branch} "${REMOTE_ACCESS_REPOSITORY}" application/remote-access-client/remoteaccess
-          cd application/remote-access-client/remoteaccess
-      else # folder exist with only the artifacts
-          cd application/remote-access-client/remoteaccess
-          git init
-          git remote add origin "${REMOTE_ACCESS_REPOSITORY}"
-          git pull origin ${branch}
-      fi
-      git reset --hard ${REMOTE_ACCESS_TESTED_HASH} || fail "Remote access sources: REMOTE_ACCESS_TESTED_HASH ${REMOTE_ACCESS_TESTED_HASH} not found"
-      cd ../../..
-  fi
+if [ ! -d "$VLC_REMOTE_ACCESS_PATH" ] || [ ! -d "$VLC_REMOTE_ACCESS_PATH/.git" ]; then
+    diagnostic "Remote access sources: not found, cloning"
+    branch="main"
+    if [ ! -d "$VLC_REMOTE_ACCESS_PATH" ]; then
+        git clone --single-branch --branch ${branch} "${REMOTE_ACCESS_REPOSITORY}" application/remote-access-client/remoteaccess
+        cd application/remote-access-client/remoteaccess
+    else # folder exist with only the artifacts
+        cd application/remote-access-client/remoteaccess
+        git init
+        git remote add origin "${REMOTE_ACCESS_REPOSITORY}"
+        git pull origin ${branch}
+    fi
+    git reset --hard ${REMOTE_ACCESS_TESTED_HASH} || fail "Remote access sources: REMOTE_ACCESS_TESTED_HASH ${REMOTE_ACCESS_TESTED_HASH} not found"
+    cd ../../..
+fi
 
-  if [ "$INIT_ONLY" != 1 ]; then
-        diagnostic "Building the Remote Access project"
+if [ "$INIT_ONLY" != 1 ]; then
+    diagnostic "Building the Remote Access project"
     cd "$VLC_REMOTE_ACCESS_PATH"
 
     npm install
     npm run build-android
     cd ..
-  fi
+fi



More information about the Android mailing list