Skip to content

Commit efe22d1

Browse files
authored
Update lightpkg
1 parent d13d1dc commit efe22d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightpkg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/usr/bin/env lua
22
if arg[1] == "install" or arg[1] == "-S" then
33
if arg[2] == "a" then
4-
os.execute("git clone https://aur.archlinux.org/"..arg[3].." /tmp/lightpkg/"..arg[3])
4+
os.execute("git clone https://aur.archlinux.org/"..arg[3].." /tmp/"..arg[3])
55
os.execute("cd /tmp/lightpkg/"..arg[3].." && makepkg -si")
6+
os.execute("sudo rm -rf /tmp/"..arg[3])
67
else
78
os.execute("sudo pacman -S "..arg[2])
89
end

0 commit comments

Comments
 (0)