diff options
author | June McEnroe <programble@gmail.com> | 2017-01-21 17:31:18 -0500 |
---|---|---|
committer | June McEnroe <programble@gmail.com> | 2017-01-21 17:31:18 -0500 |
commit | 2adcfc1787030ecaa9917565d43f0c2c4ab4108d (patch) | |
tree | fcdf44051f29f8131b4e82a908985062c09ee953 /import.sh | |
parent | Group git aliases (diff) | |
download | src-2adcfc1787030ecaa9917565d43f0c2c4ab4108d.tar.gz src-2adcfc1787030ecaa9917565d43f0c2c4ab4108d.zip |
Use zsh for shell scripts
Diffstat (limited to 'import.sh')
-rwxr-xr-x | import.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/import.sh b/import.sh index 66dde777..bd4909fb 100755 --- a/import.sh +++ b/import.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env zsh # Import a file from ~ and replace it with a symlink. @@ -9,7 +9,7 @@ error() { exit 1 } -[ -z "$1" ] && error "no path" +[ -z "$1" ] && error 'no path' source_path="$HOME/$1" dest_path="$PWD/$1" @@ -20,4 +20,4 @@ dest_path="$PWD/$1" mkdir -p "$(dirname "$dest_path")" mv "$source_path" "$dest_path" ln -s "$dest_path" "$source_path" -echo "link $1" >> install.sh +echo "link '$1'" >> install.sh |