mirror of
https://github.com/edu4rdshl/simpleaur.git
synced 2026-07-17 23:24:46 +00:00
Added support for check VIM when simpleaur is launched
This commit is contained in:
parent
5dc0c6b6ae
commit
2087450c68
1 changed files with 12 additions and 0 deletions
12
simpleaur
12
simpleaur
|
|
@ -3,12 +3,24 @@
|
|||
ipackage="$1" #Take the package name from the first ARG passed.
|
||||
basebuilddir="$HOME/Build" #Define the base Build DIR
|
||||
builddir="$HOME/Build/$ipackage" #Define the package Build DIR
|
||||
vimexist=$(which vim 2> /dev/null)
|
||||
|
||||
#Check if the base Build DIR exists, if not create it.
|
||||
if [ ! -d "$basebuilddir" ]; then
|
||||
mkdir "$basebuilddir"
|
||||
fi
|
||||
|
||||
if [ -x "$vimexist" ] ; then
|
||||
continue
|
||||
else
|
||||
printf "\e[1;31m%-6s\e[m\n%s\n" "Error: vim is needed to see PKGBUILD and was not found in ($PATH).
|
||||
|
||||
|
||||
Install VIM using: pacman -S vim"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
#Define the function that install the AUR package in the system
|
||||
function installpackage() {
|
||||
#Download the package using git
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue