0

I ran the following script using ". setup_package.sh", and get the following error:

vagrant@vagrant-ubuntu-trusty-64:/var/www/dj/$ . setup_package.sh
: command not found
: command not found
Need to install packages? (ex: Y/N):
': not a valid identifierkage
: command not found
: command not found
: command not found
: command not found

File:

#!/bin/bash

###
# read project input
###

echo "Need to install packages? (ex: Y/N): "
read install_package
user1187968
  • 5,950
  • 15
  • 62
  • 136
  • You lack some information, try editing the script and add `set -x` add the top, below the sheebang. This will output the exact commands that are generated. – kebs May 13 '16 at 09:02

1 Answers1

0

setup_package.sh contains windows line endings. You should install dos2unix and run:

dos2unix setup_package.sh
Camusensei
  • 1,320
  • 11
  • 20