File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -268,10 +268,13 @@ ${orange}Tool By Sauraj (@Ksauraj)${normal}
268
268
_update_copy () {
269
269
local file=$1
270
270
if declare -p TERMUX_VERSION & > /dev/null; then
271
- cp " $file " " $PREFIX /bin"
271
+ cp -f " $file " " $PREFIX /bin/ksau"
272
+ chmod +x " $PREFIX /bin/ksau"
272
273
else
273
- sudo cp " $file " /usr/local/bin
274
+ sudo cp -f " $file " /usr/local/bin/ksau
275
+ chmod +x " /usr/local/bin/ksau"
274
276
fi
277
+ echo " Updated ksau copied."
275
278
}
276
279
277
280
update () {
@@ -289,7 +292,7 @@ update() {
289
292
new_version=$( grep ' KSAU_VERSION=' " $tmpfilename " | head -n1 | cut -d= -f2)
290
293
new_version_string=$( grep ' KSAU_VERSION_STRING=' " $tmpfilename " | head -n1 | cut -d= -f2)
291
294
if [[ $new_version -gt $KSAU_VERSION ]]; then
292
- echo " New version found $Cyan ($KSAU_VERSION_STRING -> $new_version_string )$Normal "
295
+ echo -e " New version found $Cyan ($KSAU_VERSION_STRING -> $new_version_string )$Normal "
293
296
_update_copy " $tmpfilename "
294
297
else
295
298
echo " Already on latest release."
You can’t perform that action at this time.
0 commit comments