Skip to content

Commit

Permalink
Update lightpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
TargetGalaxy authored Sep 12, 2021
1 parent 2878090 commit d13d1dc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lightpkg
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#!/usr/bin/env lua
os.execute("sudo rm -rf /tmp/*")
if arg[1] == "install" or arg[1] == "-S" then
if arg[2] == "a" then
os.execute("git clone https://aur.archlinux.org/"..arg[3].." /tmp/"..arg[3])
os.execute("cd /tmp/"..arg[3].." && makepkg -si")
os.execute("git clone https://aur.archlinux.org/"..arg[3].." /tmp/lightpkg/"..arg[3])
os.execute("cd /tmp/lightpkg/"..arg[3].." && makepkg -si")
else
os.execute("sudo pacman -S "..arg[2])
end
Expand Down

0 comments on commit d13d1dc

Please sign in to comment.