common: Remove 'sudo' from shell script 44/312444/1
authorSangYoun Kwak <sy.kwak@samsung.com>
Mon, 10 Jun 2024 07:34:53 +0000 (16:34 +0900)
committerSangYoun Kwak <sy.kwak@samsung.com>
Mon, 10 Jun 2024 07:34:53 +0000 (16:34 +0900)
Since the delta-creating scripts are executed with root privilege, sudo
is unnecessary.

Change-Id: Ic108d8bb3fcd0ab3ed41cfdca57d41d1ed6325d1
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
mk_delta/common/bin/mk_delta.sh

index 3dfe3eb..a271e86 100755 (executable)
@@ -392,8 +392,8 @@ do
        fi
 
        if [ -r ${UPDATE_PROGRESS_INFO_PATH} ]; then
-               sudo cp ${UPDATE_PROGRESS_INFO_PATH} ${DELTA_DIR}/${UPDATE_PROGRESS_INFO_FILE}
-               sudo rm ${UPDATE_PROGRESS_INFO_PATH}
+               cp ${UPDATE_PROGRESS_INFO_PATH} ${DELTA_DIR}/${UPDATE_PROGRESS_INFO_FILE}
+               rm ${UPDATE_PROGRESS_INFO_PATH}
        fi
 
        if [ -r ${LOG_PATH} ]; then