Fix existing migration with non shell hooks

they could be binaries anyway
This commit is contained in:
Willow Barraco 2023-03-21 09:53:38 +01:00
parent acd9850577
commit 92eab557ae
No known key found for this signature in database
GPG Key ID: EABA44759877E02A
1 changed files with 2 additions and 2 deletions

View File

@ -15,5 +15,5 @@ mkdir -p "$XDG_CONFIG_HOME/sxmo/hooks/$SXMO_DEVICE_NAME"
find . -maxdepth 1 -type f -exec basename {} \; \
| grep -v 'needs-migration$' \
| grep -v '^sxmo_hook_.*\..*$' \
| xargs -I{} mv {} sxmo_hook_{}.sh
| grep -v '^sxmo_hook_.*' \
| xargs -I{} mv {} sxmo_hook_{}