Browse Source

check input before doing

master
Markus Bergholz 1 year ago
parent
commit
60a1eedb83
1 changed files with 8 additions and 4 deletions
  1. +8
    -4
      bash/mb.bashrc

+ 8
- 4
bash/mb.bashrc View File

@@ -156,8 +156,12 @@ function o() {
}

function aur() {
cd ~/aur
git clone https://aur.archlinux.org/"$1".git
cd $1
makepkg
if (("$#" != 1)); then
echo "source is missing..."
else
cd ~/aur
git clone https://aur.archlinux.org/"$1".git
cd $1
makepkg
fi
}

Loading…
Cancel
Save