Unix Shell Script Line Ending & Executable Issue with Subversion

Unix File Line Ending always gives you problem if you have your development environment in Windows and servers in Unix. Also if you are using Subversion as source control system then you need to be very careful about line endings. I had this issue where a shell script was deployed on Unix machine. But I was not able to run the shell script. It gave error:
$> ./myShellScript.sh : bad interpreter: No such file or directory
Code language: Bash (bash)
Thus while working with shell script we must make sure that we set proper properties to the script. I solved the above issue by adding two subversion properties to the shell script. svn:eol-style – native svn:executable – * If you are using Tortoise Client for Subversion, right click on the shell script file > Tortoise SVN > Properties. Similarly add property “svn:eol-style” with value native to subversion properties. By adding above properties, the Shell Script line ending issue will be resolved.
Share
Published by
Viral Patel
Tags: shell subversion svn Unix Shell Script

Recent Posts

  • Java

Java URL Encoder/Decoder Example

Java URL Encoder/Decoder Example - In this tutorial we will see how to URL encode/decode…

4 years ago
  • General

How to Show Multiple Examples in OpenAPI Spec

Show Multiple Examples in OpenAPI - OpenAPI (aka Swagger) Specifications has become a defecto standard…

4 years ago
  • General

How to Run Local WordPress using Docker

Local WordPress using Docker - Running a local WordPress development environment is crucial for testing…

4 years ago
  • Java

Create and Validate JWT Token in Java using JJWT

1. JWT Token Overview JSON Web Token (JWT) is an open standard defines a compact…

4 years ago
  • Spring Boot

Spring Boot GraphQL Subscription Realtime API

GraphQL Subscription provides a great way of building real-time API. In this tutorial we will…

4 years ago
  • Spring Boot

Spring Boot DynamoDB Integration Test using Testcontainers

1. Overview Spring Boot Webflux DynamoDB Integration tests - In this tutorial we will see…

5 years ago