Skip to content

Commit 5f0164b

Browse files
committed
ksau: Hotfix
1 parent e4b9ee0 commit 5f0164b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

ksau

+6-3
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,13 @@ ${orange}Tool By Sauraj (@Ksauraj)${normal}
268268
_update_copy() {
269269
local file=$1
270270
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"
272273
else
273-
sudo cp "$file" /usr/local/bin
274+
sudo cp -f "$file" /usr/local/bin/ksau
275+
chmod +x "/usr/local/bin/ksau"
274276
fi
277+
echo "Updated ksau copied."
275278
}
276279

277280
update() {
@@ -289,7 +292,7 @@ update() {
289292
new_version=$(grep 'KSAU_VERSION=' "$tmpfilename" | head -n1 | cut -d= -f2)
290293
new_version_string=$(grep 'KSAU_VERSION_STRING=' "$tmpfilename" | head -n1 | cut -d= -f2)
291294
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"
293296
_update_copy "$tmpfilename"
294297
else
295298
echo "Already on latest release."

0 commit comments

Comments
 (0)