Skip to content

Commit 5c44469

Browse files
committed
merged
1 parent 13c7481 commit 5c44469

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/update.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,12 @@ fi
115115

116116
ffupdateLatest(){
117117

118-
if ! type "regctl" >/dev/null 2>&1; then
119-
echo ""
118+
119+
echo ""
120+
121+
echo "Warning! Updating latest version, this is not recommended"
122+
123+
if ! command -v regctl &> /dev/null; then
120124
echo "regctl not found! Install it from here https://github.com/regclient/regclient/releases"
121125
echo ""
122126
exit 1

0 commit comments

Comments
 (0)