Added temporary -U update option for dev and debugging purposes

This commit is contained in:
inxi-svn 2008-10-28 01:49:16 +00:00
parent f8aac2d152
commit 28be7483ec

8
inxi
View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
######################################################################## ########################################################################
#### Script Name: inxi #### Script Name: inxi
#### version: 0.1.1 #### version: 0.1.2
#### Date: October 27 2008 #### Date: October 27 2008
######################################################################## ########################################################################
#### inxi is a fork of infobash, the original bash sys info script by locsmif #### inxi is a fork of infobash, the original bash sys info script by locsmif
@ -436,6 +436,12 @@ getparams()
fi fi
echo "$VBL" | grep -q '^[1-3]$' || error 4 "$VBL" echo "$VBL" | grep -q '^[1-3]$' || error 4 "$VBL"
;; ;;
-U)
say "Updating $SCRIPT_NAME now..."
wget -O $SCRIPT_PATH/$SCRIPT_NAME http://techpatterns.com/downloads/distro/$SCRIPT_NAME
say "To run the new version, just start $SCRIPT_NAME again."
exit 0
;;
--version) --version)
say "InfoBash, the universal, portable, system info script for irc." say "InfoBash, the universal, portable, system info script for irc."
say "Tested with Irssi, Xchat, Konversation, BitchX, KSirc, ircII," say "Tested with Irssi, Xchat, Konversation, BitchX, KSirc, ircII,"