From 0fb2614d9279c3d109343e8fd81992b7be3672eb Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Wed, 3 Feb 2016 18:44:50 +0100 Subject: [PATCH 1/2] Old locinst : now working again --- scripts/locinst.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/locinst.sh b/scripts/locinst.sh index a01141a..cff28a1 100755 --- a/scripts/locinst.sh +++ b/scripts/locinst.sh @@ -44,16 +44,16 @@ function error { # str function locinst_arch { + function getPageLink { # package, arch, repo + echo "https://www.archlinux.org/packages/$3/$2/$1/" + } + function getDlLink { # package, arch, repo echo "$(getPageLink $1 $2 $3)download/" } function findPackage { # package - function getPageLink { # package, arch, repo - echo "https://www.archlinux.org/packages/$3/$2/$1/" - } - function testLink { # link wget -q --max-redirect 0 "$1" -O /dev/null return $? From 920906f0657fe4a917744786ef4fa9f641d7b0f5 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Wed, 3 Feb 2016 18:45:49 +0100 Subject: [PATCH 2/2] xinitrc: really support sh --- xinitrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xinitrc b/xinitrc index 43700b9..58b4e25 100644 --- a/xinitrc +++ b/xinitrc @@ -6,12 +6,12 @@ # Executed by startx (run your window manager from here) # -[[ -f ~/.Xresources ]] && xrdb -merge -I$HOME ~/.Xresources +[ -f ~/.Xresources ] && xrdb -merge -I$HOME ~/.Xresources export GTK2_RC_FILES="$HOME/.gtkrc-2.0" found=0 -function tryDM { +tryDM() { if [ $found -eq 0 ]; then parameters='' case $1 in