Skip to content

Commit 57f8c68

Browse files
committed
Loop over hidden
1 parent 938bce6 commit 57f8c68

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.update.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ git clone $REPO_URL > /dev/null 2>&1 #https://github.com/fpgasystems/hdev.git
5959
sudo mv $UPDATES_PATH/$REPO_NAME/update.sh $HDEV_PATH/update
6060
sudo mv $UPDATES_PATH/$REPO_NAME/.update.sh $HDEV_PATH/.update
6161

62+
#take care of hidden files
63+
for file in $(find "$CLI_PATH" -type f -name ".*.sh"); do
64+
mv "$file" "${file%.sh}"
65+
done
66+
6267
#remove temporal copy
6368
rm -rf $UPDATES_PATH/$REPO_NAME
6469

0 commit comments

Comments
 (0)