From 1750a4cc5e03521fb85932a14d1cf271d27ec1ea Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Thu, 16 Aug 2018 18:00:42 -0400 Subject: Port all scripts to sh Not hard, but having to escape ( ) inside [ ] had me confused for a bit. --- link.zsh | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100755 link.zsh (limited to 'link.zsh') diff --git a/link.zsh b/link.zsh deleted file mode 100755 index a0a9e7aa..00000000 --- a/link.zsh +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env zsh -set -o errexit -o nounset -o pipefail - -if [[ $# -eq 1 ]]; then - linkPath="$1" - filePath="$PWD/home/${linkPath#$HOME/}" - [[ ! -f "$filePath" ]] - mkdir -p "$(dirname "$filePath")" - mv "$linkPath" "$filePath" -fi - -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" ]] - ln -s -f "$filePath" "$linkPath" -done -- cgit 1.4.1