Bash Scripts - DOS Style Line Endings

Abierto
#1,691 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
bash
Área
build-system

Línea de trabajo

Check the scripts/ directory, starting with scripts/transpile.sh, after cloning the repository and running make local-install. Verify that the scripts use Unix line endings and that make local-install executes successfully in Linux shells.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

(1) Issue/Bug Description:
Bash scripts in repository have DOS style line endings which causes bash interpreters to fail to run scripts.

(2) Steps to reproduce (if you know):

  1. Clone repository
  2. run make local-install
  3. : /bin/sh: 1: ./scripts/transpile.sh: not found indicating that sh couldn't be found, but really it's attempting to run /bin/sh^M (where ^M indicates the ASCII carriage return character)

(3) Expected behavior:
Scripts located in the ./scripts/ directory should execute in all linux shells (including bash)

(4) Distribution (run cat /etc/os-release):

cat /etc/os-release
show_command_in_title_bar
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"
show_command_in_title_bar

(5) Gnome Shell version:
GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)

(6) Pop Shell version (run apt policy pop-shell or provide the latest commit if building locally):

commit 8e176f14029a2c3bb54c52e1e7a5c697b9eb2171

(7) Where was Pop Shell installed from:
github

(8) Monitor Setup (2 x 1080p, 4K, Primary(Horizontal), Secondary(Vertical), etc):
2x 4k, horizontal 60 fps

(9) Other Installed/Enabled Extensions:
None

(10) Other Notes:
Love the project <3

Lenguaje dominante
TypeScript
Estrellas
5.3k
Forks
318
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de pop-os/shell

Todos los issues de pop-os/shell

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.