Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warning when running scp over openssh-server #1

Merged
merged 1 commit into from
May 6, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dietpi/login
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
if (( $DIETPI_INSTALL_STAGE == 1 )); then

#Boot to specific Program
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
if [ -z "$DISPLAY" ] && [ "$(tty)" == /dev/tty1 ]; then
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll also remove the double parentheses (c style ==) as this is not arithmetic, and, set to double quotes on both input and output values.

if [ "$(tty)" = "/dev/tty1" ]; then

#Kodi
if (( $AUTO_BOOT_INDEX == 1 )); then
#Debian
Expand Down Expand Up @@ -97,4 +97,4 @@

#Run whole script in a function. Loads into memory, allows for online file patching.
exit
}
}