{"action":"created","issue":{"url":"https://api.github.com/repos/Fourdee/DietPi/issues/1","labels_url":"https://api.github.com/repos/Fourdee/DietPi/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Fourdee/DietPi/issues/1/comments","events_url":"https://api.github.com/repos/Fourdee/DietPi/issues/1/events","html_url":"https://github.com/Fourdee/DietPi/pull/1","id":73443680,"number":1,"title":"Fix warning when running scp over openssh-server","user":{"login":"tdaitx","id":743143,"avatar_url":"https://avatars.githubusercontent.com/u/743143?v=3","gravatar_id":"","url":"https://api.github.com/users/tdaitx","html_url":"https://github.com/tdaitx","followers_url":"https://api.github.com/users/tdaitx/followers","following_url":"https://api.github.com/users/tdaitx/following{/other_user}","gists_url":"https://api.github.com/users/tdaitx/gists{/gist_id}","starred_url":"https://api.github.com/users/tdaitx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdaitx/subscriptions","organizations_url":"https://api.github.com/users/tdaitx/orgs","repos_url":"https://api.github.com/users/tdaitx/repos","events_url":"https://api.github.com/users/tdaitx/events{/privacy}","received_events_url":"https://api.github.com/users/tdaitx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-05T22:00:00Z","updated_at":"2015-05-06T00:57:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Fourdee/DietPi/pulls/1","html_url":"https://github.com/Fourdee/DietPi/pull/1","diff_url":"https://github.com/Fourdee/DietPi/pull/1.diff","patch_url":"https://github.com/Fourdee/DietPi/pull/1.patch"},"body":"When running `scp` to copy a file to *dietpi* I saw the following problem:\r\n```\r\n$ scp file root@dietpi\r\n/boot/dietpi/login: line 41: [: too many arguments\r\n```\r\n\r\nAdding more debug information:\r\n```\r\n$ scp file root@dietpi\r\n++ sed -n 1p /boot/dietpi/.hw_model\r\n+ HW_MODEL=1\r\n++ sed -n 2p /boot/dietpi/.hw_model\r\n+ HW_MODEL_DESCRIPTION='Raspberry Pi 1 (512MB)'\r\n++ sed -n 3p /boot/dietpi/.hw_model\r\n+ DISTRO=1\r\n++ cat /boot/dietpi/.install_stage\r\n+ DIETPI_INSTALL_STAGE=1\r\n++ cat /boot/dietpi/.auto_boot_index\r\n+ AUTO_BOOT_INDEX=0\r\n++ cat /boot/dietpi/.version\r\n+ DIETPI_VERSION=51\r\n+ ((  1 == 1  ))\r\n+ '[' -z '' ']'\r\n++ tty\r\n+ '[' not a tty == /dev/tty1 ']'\r\n/boot/dietpi/login: line 41: [: too many arguments\r\n+ /boot/dietpi/dietpi-banner 1\r\n```\r\n\r\nThe safe way to go is to use $(tty) inside double quotes.\r\n\r\nNote: I'm using the `openssh-server` package, I haven't tested it with dropbear."},"comment":{"url":"https://api.github.com/repos/Fourdee/DietPi/issues/comments/99277929","html_url":"https://github.com/Fourdee/DietPi/pull/1#issuecomment-99277929","issue_url":"https://api.github.com/repos/Fourdee/DietPi/issues/1","id":99277929,"user":{"login":"Fourdee","id":7077026,"avatar_url":"https://avatars.githubusercontent.com/u/7077026?v=3","gravatar_id":"","url":"https://api.github.com/users/Fourdee","html_url":"https://github.com/Fourdee","followers_url":"https://api.github.com/users/Fourdee/followers","following_url":"https://api.github.com/users/Fourdee/following{/other_user}","gists_url":"https://api.github.com/users/Fourdee/gists{/gist_id}","starred_url":"https://api.github.com/users/Fourdee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fourdee/subscriptions","organizations_url":"https://api.github.com/users/Fourdee/orgs","repos_url":"https://api.github.com/users/Fourdee/repos","events_url":"https://api.github.com/users/Fourdee/events{/privacy}","received_events_url":"https://api.github.com/users/Fourdee/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T00:57:51Z","updated_at":"2015-05-06T00:57:51Z","body":"Hi tdaitx,\r\n\r\nGreat find, appreciate the fix :+1: \r\n\r\nThis will be released to the public in a few days with DietPi version 52."}}