File size: 511 Bytes
2681e46
2122090
2681e46
fd8c0e4
2681e46
fd8c0e4
2681e46
fd8c0e4
 
5354fa9
fd8c0e4
 
5ab5d61
fd8c0e4
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
set -e

TARGET_FILE="/home/user/app/app2.py"

echo "πŸ” Normalizing indentation in $TARGET_FILE..."

# 1. Convert ALL tabs in the entire file into 4 spaces
expand --tabs=4 "$TARGET_FILE" > "${TARGET_FILE}.fixed"

# 2. Replace original file with fixed version
mv "${TARGET_FILE}.fixed" "$TARGET_FILE"

# 3. Double check for stray carriage returns (\r), just in case
sed -i 's/\r$//' "$TARGET_FILE"

echo "βœ… All tabs converted to spaces, indentation clean. Retrying app launch should now succeed."