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.
23 lines
692 B
23 lines
692 B
#!/bin/bash
|
|
|
|
if [ -z "$_PROFILES_PATH" ]; then
|
|
_PROFILES_PATHA=~/dotfiles/
|
|
else
|
|
_PROFILES_PATHA=${_PROFILES_PATH}
|
|
fi
|
|
|
|
if [ ! -d ${_PROFILES_PATHA} ]; then
|
|
echo "Sorry, no /opt/profiles folder!"
|
|
exit 1
|
|
fi
|
|
|
|
_MAIN_PATH="${_PROFILES_PATHA}scripts/sshto"
|
|
|
|
if [ ! -d ${_MAIN_PATH}/bin ]; then
|
|
mkdir -p ${_MAIN_PATH}/bin > /dev/null 2> /dev/null
|
|
chmod 775 ${_MAIN_PATH}/bin
|
|
fi
|
|
|
|
pushd ${_PROFILES_PATHA}
|
|
tar -zvcf ${_MAIN_PATH}/bin/bash_aliases.tar.gz --exclude=scripts/sshto --exclude=scripts/dmenu --exclude=scripts/mail_server --exclude=scripts/web_servers .bashrc .bash_aliases .git_bash_prompt scan_aliases.sh check_mail.sh theme aliases/ cheats/ custom_aliases/ scripts/
|
|
popd
|
|
|