mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 13:35:42 -07:00
Fix conditional.
This commit is contained in:
@@ -100,7 +100,7 @@ install_git() {
|
|||||||
|
|
||||||
add_bin_symlink() {
|
add_bin_symlink() {
|
||||||
local LINKNAME=${HOME}/bin/${2:-`basename $1`}
|
local LINKNAME=${HOME}/bin/${2:-`basename $1`}
|
||||||
if [ -e ${LINKNAME} && ! -h ${LINKNAME} ] ; then
|
if [ -e ${LINKNAME} -a ! -h ${LINKNAME} ] ; then
|
||||||
echo "Refusing to overwrite ${LINKNAME}" >&2
|
echo "Refusing to overwrite ${LINKNAME}" >&2
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
@@ -132,12 +132,6 @@ postinstall() {
|
|||||||
# Install other useful tools
|
# Install other useful tools
|
||||||
install_git https://github.com/trustedsec/ptf.git ${HOME}/bin/ptframework && \
|
install_git https://github.com/trustedsec/ptf.git ${HOME}/bin/ptframework && \
|
||||||
add_bin_symlink ${HOME}/bin/ptframework/ptf
|
add_bin_symlink ${HOME}/bin/ptframework/ptf
|
||||||
# Refresh all gpg keys
|
|
||||||
if test -x "`which gpg2`" ; then
|
|
||||||
gpg2 --refresh-keys
|
|
||||||
else
|
|
||||||
gpg --refresh-keys
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ssh_key_already_installed() {
|
ssh_key_already_installed() {
|
||||||
|
|||||||
Reference in New Issue
Block a user