Skip to content

Commit

Permalink
Add man pages
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonVanAssche committed Jun 23, 2022
1 parent f1f03ac commit a9f8d3f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
Binary file added docs/bashpass.1.gz
Binary file not shown.
Binary file added docs/bashpass.conf.1.gz
Binary file not shown.
6 changes: 6 additions & 0 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ Main() {
cp -r "${currentDir}/BashPass/config/bashpass.conf" "${HOME}/.config/bashpass/bashpass.conf"
cp -r "${currentDir}/BashPass/bashpass" "${HOME}/.local/bin/bashpass"

printf 'Installing man pages'
printf '\n'

[[ ! -d "${HOME}/.local/share/man/man1/" ]] && mkdir -p "${HOME}/.local/share/man/man1/"
cp -r "${currentDir}"/BashPass/docs/bashpass.{1,conf.1}.gz "${HOME}/.local/share/man/man1/"

printf 'Make sure to add '\''\${HOME}/.local/bin/'\'' to your \$PATH.'
printf '\n'

Expand Down
2 changes: 1 addition & 1 deletion scripts/uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Main() {
case "${answer}" in
[yY][eE][sS]|[yY])
printf 'Uninstalling BashPass version: '\''%s'\''...\n' "$(GetVersion)"
rm -rf "${HOME}/.config/bashpass" "${HOME}/.local/share/bashpass" "${HOME}/.local/bin/bashpass"
rm -rf "${HOME}/.config/bashpass" "${HOME}/.local/share/bashpass" "${HOME}/.local/bin/bashpass" "${HOME}"/.local/share/man/man1/bashpass.{1,conf.1}.gz
printf '\nWe hate to see you go.\n'
;;
*)
Expand Down
9 changes: 8 additions & 1 deletion scripts/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ Main() {
printf 'Updating BashPass to version: '\''%s'\''...\n' "${latestVersion}"
printf '\n'

git clone https://www.github.com/AntonVanAssche/BashPass.git --branch "$(GetLatestRelease)"
# git clone https://www.github.com/AntonVanAssche/BashPass.git --branch "$(GetLatestRelease)"
git clone https://www.github.com/AntonVanAssche/BashPass.git --branch man-pages

case $(GetOldSetting 'version') in
"1.0"| "1.1")
Expand All @@ -116,6 +117,12 @@ Main() {
;;
esac

printf 'Installing man pages'
printf '\n'

[[ ! -d "${HOME}/.local/share/man/man1/" ]] && mkdir -p "${HOME}/.local/share/man/man1/"
cp -r "${currentDir}"/BashPass/docs/bashpass.{1,conf.1}.gz "${HOME}/.local/share/man/man1/"

cp -r "${currentDir}/BashPass/bashpass" "${HOME}/.local/bin/bashpass"
rm -rf "${oldConfig}" BashPass/
}
Expand Down

0 comments on commit a9f8d3f

Please sign in to comment.