diff options
author | Michael Gehring <mg@ebfe.org> | 2016-03-16 08:19:41 +0100 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-03-16 10:21:39 +0100 |
commit | d1b9034faa1b2343455324ca0b2df8446bf5629a (patch) | |
tree | ec95ed2306ca4c212bf6da352c90894ea67072e3 /xrecent | |
parent | 99bfe8515b865567ed3de53026a71121b072910b (diff) | |
download | xtools-d1b9034faa1b2343455324ca0b2df8446bf5629a.tar.gz xtools-d1b9034faa1b2343455324ca0b2df8446bf5629a.tar.xz xtools-d1b9034faa1b2343455324ca0b2df8446bf5629a.zip |
xrecent: derive default repo from current arch
Closes: #35 [via git-merge-pr]
Diffstat (limited to 'xrecent')
-rwxr-xr-x | xrecent | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/xrecent b/xrecent index fd9ec21..9d3571c 100755 --- a/xrecent +++ b/xrecent @@ -1,7 +1,13 @@ #!/bin/sh # xrecent [REPOURL|XBPS_ARCH] - list packages in repo ordered by build date -repo=http://repo.voidlinux.eu/current/ +case "$(xbps-uhelper arch)" in + *-musl) + repo=http://muslrepo.voidlinux.eu/current/;; + *) + repo=http://repo.voidlinux.eu/current/;; +esac + case "$1" in */*) repo=$1;; |