{"issue":{"title":"sed error when trying to run fab code_init:mysite.com","milestone":null,"user":{"id":186538,"login":"diegoponciano","url":"https://api.github.com/users/diegoponciano","avatar_url":"https://secure.gravatar.com/avatar/8845d5bf795057709b21c43d830f76e4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"8845d5bf795057709b21c43d830f76e4"},"created_at":"2011-12-16T18:39:03Z","labels":[],"state":"open","updated_at":"2011-12-17T04:19:31Z","id":2582864,"html_url":"https://github.com/swaroopch/flask-boilerplate/issues/4","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"closed_at":null,"body":"I followed the steps to \"Get started\", but when running 'fab code_init:mysite.com', I get the following:\r\n\r\n```bash\r\n$ sudo fab code_init:mysite.com\r\n[localhost] local: bash setup/code_init.bash mysite.com\r\n! Domain name --> mysite.com\r\n! Generating secret key and updating config file\r\nsed: can't read : No such file or directory\r\n! Could not fill flask_application/config.py\r\n\r\nFatal error: local() encountered an error (return code 1) while executing 'bash setup/code_init.bash mysite.com'\r\n\r\nAborting.\r\n```\r\n\r\nBy the way, I'm using Ubuntu. Could this be an issue with my environment?","number":4,"url":"https://api.github.com/repos/swaroopch/flask-boilerplate/issues/4","comments":1,"assignee":null},"comment":{"user":{"id":186538,"login":"diegoponciano","url":"https://api.github.com/users/diegoponciano","avatar_url":"https://secure.gravatar.com/avatar/8845d5bf795057709b21c43d830f76e4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"8845d5bf795057709b21c43d830f76e4"},"created_at":"2011-12-17T04:19:31Z","updated_at":"2011-12-17T04:19:31Z","id":3187670,"body":"It worked when I removed the double quotes on the sed commands.\r\nChanged from:\r\n\r\n```bash\r\nsed -i \"\" -e \"s/{SECRET_KEY}/$SECRET_KEY/g\" -e \"s/{SITE_NAME}/$SITE_NAME/g\" \"config.py\" || critical \"Could not fill $APP_NAME/config.py\"\r\n```\r\n\r\nto:\r\n\r\n```bash\r\nsed -i -e \"s/{SECRET_KEY}/$SECRET_KEY/g\" -e \"s/{SITE_NAME}/$SITE_NAME/g\" \"config.py\" || critical \"Could not fill $APP_NAME/config.py\"\r\n```\r\n\r\nIs there a reason for these double quotes?","url":"https://api.github.com/repos/swaroopch/flask-boilerplate/issues/comments/3187670"},"action":"created"}