mirror of
https://github.com/Snigdha-OS/snigdhaos-system-config.git
synced 2025-12-06 08:03:53 +01:00
29 lines
506 B
Bash
Executable File
29 lines
506 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo
|
|
echo "Copying /etc/pacman.d/gnupg/gpg.conf"
|
|
echo
|
|
|
|
file_boolean=0
|
|
function check_file() {
|
|
|
|
file="/usr/local/share/snigdhaos/gpg.conf"
|
|
if [[ -f $file ]];then
|
|
echo $file " exists"
|
|
file_boolean=1
|
|
else
|
|
echo $file " doesn't exist"
|
|
file_boolean=0
|
|
fi
|
|
}
|
|
|
|
check_file
|
|
|
|
if [ $file_boolean -eq 1 ] ; then
|
|
sudo cp /usr/local/share/snigdhaos/gpg.conf /etc/pacman.d/gnupg/gpg.conf
|
|
echo "/etc/pacman.d/gnupg/gpg.conf copied from local system"
|
|
fi
|
|
|
|
echo
|
|
echo "Task Completed!"
|
|
echo |