Skip to content

Instantly share code, notes, and snippets.

@apetenchea
Created July 8, 2022 11:20
Show Gist options
  • Save apetenchea/955fcf630f688c7d453f4d4c1b5ce3fe to your computer and use it in GitHub Desktop.
Save apetenchea/955fcf630f688c7d453f4d4c1b5ce3fe to your computer and use it in GitHub Desktop.
CLion remote editing fix
#!/bin/bash
# Fix file permissions after setting up remote development with CLion
# Run this in the root of your project folder
dir=$(pwd)
for f in $(rg -l "\#!")
do
echo "$f"
cd $(dirname "$f")
chmod +x $(basename "$f")
cd $dir
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment