Skip to content

Commit

Permalink
I think this works
Browse files Browse the repository at this point in the history
  • Loading branch information
6nv committed Feb 6, 2024
1 parent 58603b3 commit 02fa0bd
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions run
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,18 @@ done
if "${force_cmd}" ; then
shopt -s dotglob nullglob
backup_dir='.backup'
mkdir -v "${backup_dir}"
mkdir -v "${backup_dir}" || exit 1
echo "Moving files to ${backup_dir}..."
mv -v ./* "./${backup_dir}/"
mv -v "./${backup_dir}/.git" .
cd "${backup_dir}" || exit 1
mv -v .git run ..
cd ..
npx -y @grafana/create-plugin@latest
dir_name="$(ls)"
mv -v "./${dir_name}/*" ./*
dir_name="$(ls -d ./[A-Za-z]*/)"
cd "${dir_name}" || exit 1
mv -v ./* ..
cd ..
echo 'Removing files...'
rm -vr "${dir_name}"
else
git_status
Expand Down

0 comments on commit 02fa0bd

Please sign in to comment.