Skip to content

Commit

Permalink
Updated code
Browse files Browse the repository at this point in the history
  • Loading branch information
ulises-jeremias committed Feb 19, 2022
1 parent 59b9f1d commit 63be98d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 24 deletions.
7 changes: 1 addition & 6 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,5 @@ package() {
git fetch --tags
latest_release=$(git describe --tags "$(git rev-list --tags --max-count=1)")
git checkout "${latest_release}"
install -d "${pkgdir}/opt/${pkgname}"
cp -Rf ./* "${pkgdir}/opt/${pkgname}"
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
install -Dm644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}/"
install -Dm755 dots -t "${pkgdir}/usr/bin/"
install -Dm755 dots-scripts -t "${pkgdir}/usr/bin/"
PKGNAME=dots sudo ./install
}
7 changes: 1 addition & 6 deletions PKGBUILD.dev
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,5 @@ pkgver() {

package() {
cd dotfiles || exit 1
install -d "${pkgdir}/opt/${pkgname}"
cp -Rf ./* "${pkgdir}/opt/${pkgname}"
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
install -Dm644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}/"
install -Dm755 dots -t "${pkgdir}/usr/bin/"
install -Dm755 dots-scripts -t "${pkgdir}/usr/bin/"
PKGNAME=dots sudo ./install
}
8 changes: 2 additions & 6 deletions dots
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,8 @@ ROOT=$(dirname "$0")
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
export XDG_CONFIG_HOME

if [[ -d /opt/dots-git ]]; then
ROOT=/opt/dots-git
fi

if [[ -d /opt/dots-stable ]]; then
ROOT=/opt/dots-stable
if [[ -d /opt/dots ]]; then
ROOT=/opt/dots
fi

source "${ROOT}"/util/opts/opts.sh || exit
Expand Down
8 changes: 2 additions & 6 deletions dots-scripts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,8 @@

ROOT=$(dirname "$0")

if [[ -d /opt/dots-git ]]; then
ROOT=/opt/dots-git
fi

if [[ -d /opt/dots-stable ]]; then
ROOT=/opt/dots-stable
if [[ -d /opt/dots ]]; then
ROOT=/opt/dots
fi

show_message_with_usage() {
Expand Down

0 comments on commit 63be98d

Please sign in to comment.