summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xlink.sh (renamed from link.zsh)12
-rwxr-xr-xpdf.sh (renamed from pdf.zsh)6
-rwxr-xr-xprune.sh (renamed from prune.zsh)4
3 files changed, 11 insertions, 11 deletions
diff --git a/link.zsh b/link.sh
index a0a9e7aa..0f1f49aa 100755
--- a/link.zsh
+++ b/link.sh
@@ -1,10 +1,10 @@
-#!/usr/bin/env zsh
-set -o errexit -o nounset -o pipefail
+#!/bin/sh
+set -e -u
 
-if [[ $# -eq 1 ]]; then
-	linkPath="$1"
+if [ $# -eq 1 ]; then
+	linkPath=$1
 	filePath="$PWD/home/${linkPath#$HOME/}"
-	[[ ! -f "$filePath" ]]
+	[ ! -f "$filePath" ]
 	mkdir -p "$(dirname "$filePath")"
 	mv "$linkPath" "$filePath"
 fi
@@ -13,6 +13,6 @@ find home -type f | while read -r findPath; do
 	filePath="$PWD/$findPath"
 	linkPath="$HOME/${findPath#home/}"
 	mkdir -p "$(dirname "$linkPath")"
-	[[ ( -f "$linkPath" && -L "$linkPath" ) || ! -f "$linkPath" ]]
+	[ \( -f "$linkPath" -a -L "$linkPath" \) -o ! -f "$linkPath" ]
 	ln -s -f "$filePath" "$linkPath"
 done
diff --git a/pdf.zsh b/pdf.sh
index 25458dfa..90c73de1 100755
--- a/pdf.zsh
+++ b/pdf.sh
@@ -1,10 +1,10 @@
-#!/usr/bin/env zsh
-set -o errexit -o nounset -o pipefail
+#!/bin/sh
+set -e -u
 
 mkdir -p pdf
 
 fetch() {
-	[[ -f "pdf/$1" ]] && return
+	[ -f "pdf/$1" ] && return
 	curl --silent --show-error --output "pdf/$1" "$2"
 	echo "pdf/$1"
 }
diff --git a/prune.zsh b/prune.sh
index db85a9d1..31ab30cf 100755
--- a/prune.zsh
+++ b/prune.sh
@@ -1,5 +1,5 @@
-#!/usr/bin/env zsh
-set -o errexit -o nounset -o pipefail
+#!/bin/sh
+set -e -u
 
 find -L ~ -type l -lname "$PWD/*" | while read -r linkPath; do
 	rm "$linkPath"
d>Automatically perform database migrations in litterboxJune McEnroe 2020-05-20Don't install rc scripts on other platformsJune McEnroe 2020-05-20Rewrite build and install like pounce 1.3June McEnroe 2020-05-20Update email addressesJune McEnroe 2020-04-23Call updateConsumer from handleError 1.2p1June McEnroe 2020-04-20Use . as ${LDLIBS.$@} separatorJune McEnroe 2020-04-05Error on invalid ISUPPORT values 1.2June McEnroe 2020-04-05Only set RCS on FreeBSDJune McEnroe 2020-04-05Log bans and unbansJune McEnroe 2020-04-05Parse mode types from ISUPPORTJune McEnroe 2020-04-05Add unscoop matchers for ban/unban eventsJune McEnroe 2020-04-05Check unscoop regexps with make testJune McEnroe 2020-04-05Add unscoop -n flag for checking regexpsJune McEnroe 2020-04-05Add Ban and Unban event typesJune McEnroe 2020-04-02Update styleJune McEnroe 2020-03-31Update unscoop catgirl matchersJune McEnroe 2020-03-31Fix writing verbose to stderrJune McEnroe 2020-03-02Include <>/-/* around nicks in scoop coloring 1.1June McEnroe 2020-03-02Replace .mk files with configure scriptJune McEnroe 2020-02-28Implement the causal.agency/consumer capabilityJune McEnroe 2020-02-22Include <>/-/* around nicks in coloringJune McEnroe 2020-02-22Use (almost) the full range of IRC colors for nicksJune McEnroe