diff --git a/blueprint.sh b/blueprint.sh index e4a8b330..afe46596 100644 --- a/blueprint.sh +++ b/blueprint.sh @@ -1082,36 +1082,36 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) || ( $2 == "-add" ) ]]; then VCMD=" if [[ $dashboard_wrapper != "" ]]; then PRINT INFO "Cloning and injecting dashboard wrapper.." if [[ $DUPLICATE == "y" ]]; then - sed -n -i "//{p; :a; N; //!ba; s/.*\n//}; p" "resources/views/partials/dashboard/dashboard.blade.php" + sed -n -i "//{p; :a; N; //!ba; s/.*\n//}; p" "resources/views/blueprint/dashboard/dashboard.blade.php" sed -i \ -e "s~~~g" \ -e "s~~~g" \ - "resources/views/partials/dashboard/dashboard.blade.php" + "resources/views/blueprint/dashboard/dashboard.blade.php" fi touch ".blueprint/tmp/$n/$dashboard_wrapper.BLUEPRINTBAK" cat <(echo "") ".blueprint/tmp/$n/$dashboard_wrapper" > ".blueprint/tmp/$n/$dashboard_wrapper.BLUEPRINTBAK" cp ".blueprint/tmp/$n/$dashboard_wrapper.BLUEPRINTBAK" ".blueprint/tmp/$n/$dashboard_wrapper" rm ".blueprint/tmp/$n/$dashboard_wrapper.BLUEPRINTBAK" echo -e "\n" >> ".blueprint/tmp/$n/$dashboard_wrapper" - sed -i "/<\!-- wrapper:insert -->/r .blueprint/tmp/$n/$dashboard_wrapper" "resources/views/partials/dashboard/dashboard.blade.php" + sed -i "/<\!-- wrapper:insert -->/r .blueprint/tmp/$n/$dashboard_wrapper" "resources/views/blueprint/dashboard/dashboard.blade.php" fi # Place admin wrapper if [[ $admin_wrapper != "" ]]; then PRINT INFO "Cloning and injecting admin wrapper.." if [[ $DUPLICATE == "y" ]]; then - sed -n -i "//{p; :a; N; //!ba; s/.*\n//}; p" "resources/views/partials/admin/admin.blade.php" + sed -n -i "//{p; :a; N; //!ba; s/.*\n//}; p" "resources/views/blueprint/admin/admin.blade.php" sed -i \ -e "s~~~g" \ -e "s~~~g" \ - "resources/views/partials/admin/admin.blade.php" + "resources/views/blueprint/admin/admin.blade.php" fi touch ".blueprint/tmp/$n/$admin_wrapper.BLUEPRINTBAK" cat <(echo "") ".blueprint/tmp/$n/$admin_wrapper" > ".blueprint/tmp/$n/$admin_wrapper.BLUEPRINTBAK" cp ".blueprint/tmp/$n/$admin_wrapper.BLUEPRINTBAK" ".blueprint/tmp/$n/$admin_wrapper" rm ".blueprint/tmp/$n/$admin_wrapper.BLUEPRINTBAK" echo -e "\n" >> ".blueprint/tmp/$n/$admin_wrapper" - sed -i "/<\!-- wrapper:insert -->/r .blueprint/tmp/$n/$admin_wrapper" "resources/views/partials/admin/admin.blade.php" + sed -i "/<\!-- wrapper:insert -->/r .blueprint/tmp/$n/$admin_wrapper" "resources/views/blueprint/admin/admin.blade.php" fi # Create backup of generated values. @@ -1297,21 +1297,21 @@ if [[ ( $2 == "-r" ) || ( $2 == "-remove" ) ]]; then VCMD="y" # Remove admin wrapper if [[ $admin_wrapper != "" ]]; then PRINT INFO "Removing admin wrapper.." - sed -n -i "//{p; :a; N; //!ba; s/.*\n//}; p" "resources/views/partials/admin/admin.blade.php" + sed -n -i "//{p; :a; N; //!ba; s/.*\n//}; p" "resources/views/blueprint/admin/admin.blade.php" sed -i \ -e "s~~~g" \ -e "s~~~g" \ - "resources/views/partials/admin/admin.blade.php" + "resources/views/blueprint/admin/admin.blade.php" fi # Remove dashboard wrapper if [[ $dashboard_wrapper != "" ]]; then PRINT INFO "Removing dashboard wrapper.." - sed -n -i "//{p; :a; N; //!ba; s/.*\n//}; p" "resources/views/partials/dashboard/dashboard.blade.php" + sed -n -i "//{p; :a; N; //!ba; s/.*\n//}; p" "resources/views/blueprint/dashboard/dashboard.blade.php" sed -i \ -e "s~~~g" \ -e "s~~~g" \ - "resources/views/partials/dashboard/dashboard.blade.php" + "resources/views/blueprint/dashboard/dashboard.blade.php" fi # Remove dashboard css