mirror of
https://github.com/foo-dogsquared/dotfiles.git
synced 2025-01-30 22:57:54 +00:00
Create a package list update script
This commit is contained in:
parent
0b0c8037c4
commit
3bf8c5b761
15
.scripts/create-pacman-pkglist.sh
Normal file
15
.scripts/create-pacman-pkglist.sh
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Simply creates a package list at $HOME as `pkglist.txt`
|
||||
|
||||
pkglist=$(pacman -Qqne)
|
||||
pkglist_filepath="$HOME/pkglist.txt"
|
||||
|
||||
if [[ -f $pkglist_filepath ]]; then
|
||||
rm "$pkglist_filepath"
|
||||
fi
|
||||
|
||||
touch $pkglist_filepath
|
||||
|
||||
echo "$pkglist" >> $pkglist_filepath
|
||||
|
Loading…
Reference in New Issue
Block a user