Offline archlinux installer ISO creator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
koffe/reregister

16 lines
322 B

#!/bin/bash
cat ~/.bashrc > /tmp/rereg
for file in $(ls /arch/pkgs/)
do
if [ $(file /arch/pkgs/$file | cut -f 2 -d ' ') == directory ];
then
echo register-g $file >> /tmp/rereg
fi
if [ $(file /arch/pkgs/$file | cut -f 2 -d ' ') != directory ];
then
echo register $file >> /tmp/rereg
fi
done
bash /tmp/rereg