From e872a71c3779b61122bdaf06e98e33fed8950528 Mon Sep 17 00:00:00 2001 From: Jeff Dickey Date: Thu, 5 Feb 2015 17:59:25 -0800 Subject: [PATCH] add shebang for sh the user might be using a shell like fish that won't work with this script --- mongo-import.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mongo-import.sh b/mongo-import.sh index b90b734..70431e4 100755 --- a/mongo-import.sh +++ b/mongo-import.sh @@ -1,7 +1,8 @@ +#!/bin/sh for f in *.csv do filename=$(basename "$f") extension="${filename##*.}" filename="${filename%.*}" mongoimport -d Northwind -c "$filename" --type csv --file "$f" --headerline -done \ No newline at end of file +done