Add cockpit function, make variable local, remove output in checkupdates condition
This commit is contained in:
parent
e02563dfec
commit
9c5e6cfa5f
1 changed files with 9 additions and 3 deletions
|
@ -50,13 +50,19 @@ clitip() {
|
||||||
|
|
||||||
GIT_REPOS=(~/SetupCockpit ~/Keepass ~/Lessons/* ~/PersonalScripts ~/RootMe ~/SRC/*)
|
GIT_REPOS=(~/SetupCockpit ~/Keepass ~/Lessons/* ~/PersonalScripts ~/RootMe ~/SRC/*)
|
||||||
|
|
||||||
|
cockpit() { # enable pass-like commands (ex: cockpit git push)
|
||||||
|
local start_dir="$PWD"
|
||||||
|
cd ~/SetupCockpit && "$@"
|
||||||
|
cd "$start_dir" && echo 'done'
|
||||||
|
}
|
||||||
|
|
||||||
hello() {
|
hello() {
|
||||||
start_dir="$PWD"
|
local start_dir="$PWD"
|
||||||
sudo protonvpn c -f
|
sudo protonvpn c -f
|
||||||
echo
|
echo
|
||||||
# Don't update if its a kernel update that will require reboot
|
# Don't update if its a kernel update that will require reboot
|
||||||
if checkupdates | grep linux; then
|
if checkupdates >/dev/null 2>&1; then
|
||||||
case "$(checkupdates | grep linux)" in
|
case "$(checkupdates | grep linux && echo)" in
|
||||||
*linux*)
|
*linux*)
|
||||||
echo "Not performing update"
|
echo "Not performing update"
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Reference in a new issue