We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a0092d commit 010ee6fCopy full SHA for 010ee6f
scripts/install_dingoadm.sh
@@ -103,6 +103,10 @@ install_binary() {
103
elif [ "$source" == "github" ]; then
104
echo "Downloading from GitHub..."
105
local tempfile="/tmp/dingoadm"
106
+ # check /tmp/dingoadm exists, if exists, remove it
107
+ if [ -f "${tempfile}" ]; then
108
+ rm -f "${tempfile}"
109
+ fi
110
# Add your GitHub download logic here
111
wget $g_github_url -O "${tempfile}" # github
112
if [ $? -eq 0 ]; then
0 commit comments