@@ -89,42 +89,42 @@ echo "SDK_VERSION=${sdk_version}" >> $setup
8989cat template_dir >> $setup
9090
9191if [ -n " $file_gcc_x86 " ]; then
92- echo " tar -C \$ target_sdk_dir ./$file_gcc_x86 > /dev/null &" >> $setup
92+ echo " tar -C \$ target_sdk_dir -xf ./$file_gcc_x86 > /dev/null &" >> $setup
9393 echo " spinner \$ ! \" Installing x86 tools...\" " >> $setup
9494 echo " [ \$ ? -ne 0 ] && echo \" Error(s) encountered during installation.\" && exit 1" >> $setup
9595 echo " echo \"\" " >> $setup
9696fi
9797
9898if [ -n " $file_gcc_arm " ]; then
99- echo " tar -C \$ target_sdk_dir ./$file_gcc_arm > /dev/null &" >> $setup
99+ echo " tar -C \$ target_sdk_dir -xf ./$file_gcc_arm > /dev/null &" >> $setup
100100 echo " spinner \$ ! \" Installing arm tools...\" " >> $setup
101101 echo " [ \$ ? -ne 0 ] && echo \" Error(s) encountered during installation.\" && exit 1" >> $setup
102102 echo " echo \"\" " >> $setup
103103fi
104104
105105if [ -n " $file_gcc_arc " ]; then
106- echo " tar -C \$ target_sdk_dir ./$file_gcc_arc > /dev/null &" >> $setup
106+ echo " tar -C \$ target_sdk_dir -xf ./$file_gcc_arc > /dev/null &" >> $setup
107107 echo " spinner \$ ! \" Installing arc tools...\" " >> $setup
108108 echo " [ \$ ? -ne 0 ] && echo \" Error(s) encountered during installation.\" && exit 1" >> $setup
109109 echo " echo \"\" " >> $setup
110110fi
111111
112112if [ -n " $file_gcc_iamcu " ]; then
113- echo " tar -C \$ target_sdk_dir ./$file_gcc_iamcu > /dev/null &" >> $setup
113+ echo " tar -C \$ target_sdk_dir -xf ./$file_gcc_iamcu > /dev/null &" >> $setup
114114 echo " spinner \$ ! \" Installing iamcu tools...\" " >> $setup
115115 echo " [ \$ ? -ne 0 ] && echo \" Error(s) encountered during installation.\" && exit 1" >> $setup
116116 echo " echo \"\" " >> $setup
117117fi
118118
119119if [ -n " $file_gcc_mips " ]; then
120- echo " tar -C \$ target_sdk_dir ./$file_gcc_mips > /dev/null &" >> $setup
120+ echo " tar -C \$ target_sdk_dir -xf ./$file_gcc_mips > /dev/null &" >> $setup
121121 echo " spinner \$ ! \" Installing mips tools...\" " >> $setup
122122 echo " [ \$ ? -ne 0 ] && echo \" Error(s) encountered during installation.\" && exit 1" >> $setup
123123 echo " echo \"\" " >> $setup
124124fi
125125
126126if [ -n " $file_gcc_nios2 " ]; then
127- echo " tar -C \$ target_sdk_dir ./$file_gcc_nios2 > /dev/null &" >> $setup
127+ echo " tar -C \$ target_sdk_dir -xf ./$file_gcc_nios2 > /dev/null &" >> $setup
128128 echo " spinner \$ ! \" Installing nios2 tools...\" " >> $setup
129129 echo " [ \$ ? -ne 0 ] && echo \" Error(s) encountered during installation.\" && exit 1" >> $setup
130130 echo " echo \"\" " >> $setup
0 commit comments