Skip to content

Commit 010ee6f

Browse files
committed
[fix][install] remove existed /tmp/dingoadm
1 parent 2a0092d commit 010ee6f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/install_dingoadm.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ install_binary() {
103103
elif [ "$source" == "github" ]; then
104104
echo "Downloading from GitHub..."
105105
local tempfile="/tmp/dingoadm"
106+
# check /tmp/dingoadm exists, if exists, remove it
107+
if [ -f "${tempfile}" ]; then
108+
rm -f "${tempfile}"
109+
fi
106110
# Add your GitHub download logic here
107111
wget $g_github_url -O "${tempfile}" # github
108112
if [ $? -eq 0 ]; then

0 commit comments

Comments
 (0)