mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 05:27:13 -06:00
chore: moved zookeeper and website to packages
This commit is contained in:
parent
cc288ad959
commit
cf8516c54f
976 changed files with 40485 additions and 0 deletions
19
packages/website/frontend/scripts/directoryconverter.sh
Executable file
19
packages/website/frontend/scripts/directoryconverter.sh
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
for file in *; do
|
||||
# Check if it's a file (not a directory)
|
||||
if [ -f "$file" ]; then
|
||||
# Get filename without extension
|
||||
dirname="${file%.*}"
|
||||
|
||||
# Create directory if it doesn't exist
|
||||
if [ ! -d "$dirname" ]; then
|
||||
mkdir "$dirname"
|
||||
echo "Created directory: $dirname"
|
||||
fi
|
||||
|
||||
# Move the file into its directory
|
||||
mv "$file" "$dirname/"
|
||||
echo "Moved $file to $dirname/"
|
||||
fi
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue