mirror of
https://github.com/xsghetti/HyprCrux.git
synced 2025-07-02 21:30:39 -04:00
Install Script Testing
This commit is contained in:
parent
a523ee2b13
commit
a11d325a19
21 changed files with 1580 additions and 0 deletions
33
Scripts/restore_fnt.sh
Normal file
33
Scripts/restore_fnt.sh
Normal file
|
@ -0,0 +1,33 @@
|
|||
#!/bin/bash
|
||||
#|---/ /+----------------------------------+---/ /|#
|
||||
#|--/ /-| Script to extract fonts & themes |--/ /-|#
|
||||
#|-/ /--| Prasanth Rangan |-/ /--|#
|
||||
#|/ /---+----------------------------------+/ /---|#
|
||||
|
||||
source global_fn.sh
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo "Error: unable to source global_fn.sh, please execute from $(dirname "$(realpath "$0")")..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cat restore_fnt.lst | while read lst
|
||||
do
|
||||
|
||||
fnt=`echo $lst | awk -F '|' '{print $1}'`
|
||||
tgt=`echo $lst | awk -F '|' '{print $2}'`
|
||||
tgt=`eval "echo $tgt"`
|
||||
|
||||
if [ ! -d "${tgt}" ]
|
||||
then
|
||||
mkdir -p ${tgt} || echo "creating the directory as root instead..." && sudo mkdir -p ${tgt}
|
||||
echo "${tgt} directory created..."
|
||||
fi
|
||||
|
||||
sudo tar -xzf ${CloneDir}/Source/arcs/${fnt}.tar.gz -C ${tgt}/
|
||||
echo "uncompressing ${fnt}.tar.gz --> ${tgt}..."
|
||||
|
||||
done
|
||||
|
||||
echo "rebuilding font cache..."
|
||||
fc-cache -f
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue