File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -83,13 +83,6 @@ __EOF__
8383install_binary () {
8484 local ret=1
8585
86- # curl "${g_download_url}" -skLo "${tempfile}" # internal
87- # wget $g_github_url -O "${tempfile}" # github
88- # if [ $? -eq 0 ]; then
89- # tar -zxvf "${tempfile}" -C "${g_bin_dir}" 1>/dev/null
90- # ret=$?
91- # fi
92-
9386 local source=$1
9487 if [ " $source " == " internal" ]; then
9588 echo " Downloading from internal source..."
@@ -105,7 +98,8 @@ install_binary() {
10598 local tempfile=" /tmp/dingoadm"
10699 # check /tmp/dingoadm exists, if exists, remove it
107100 if [ -f " ${tempfile} " ]; then
108- rm -f " ${tempfile} "
101+ echo " remove existing tempfile ${tempfile} "
102+ sudo rm -f " ${tempfile} "
109103 fi
110104 # Add your GitHub download logic here
111105 wget $g_github_url -O " ${tempfile} " # github
You can’t perform that action at this time.
0 commit comments