Skip to content
Snippets Groups Projects
Commit 68c3f3ee authored by Odai Atieh's avatar Odai Atieh Committed by Rajab Natshah
Browse files

Issue #3081351 by Odai Atieh: Fix [Vartheme BS3] theme sub-theme bash script generator on MAC OS X

parent 7d934921
No related branches found
No related tags found
No related merge requests found
......@@ -48,23 +48,23 @@ current_path=$(pwd);
drupal_root="$current_path";
if [[ "${drupal_root: -1}" == "/" ]]; then
drupal_root="${drupal_root::-1}";
drupal_root="${drupal_root:0:${#drupal_root}-1}";
fi
if [[ "${drupal_root: -24}" == "profiles/varbase/scripts" ]]; then
drupal_root="${drupal_root::-24}";
drupal_root="${drupal_root:0:${#drupal_root}-24}";
fi
if [[ "${drupal_root: -16}" == "profiles/varbase" ]]; then
drupal_root="${drupal_root::-16}";
drupal_root="${drupal_root:0:${#drupal_root}-16}";
fi
if [[ "${drupal_root: -8}" == "profiles" ]]; then
drupal_root="${drupal_root::-8}";
drupal_root="${drupal_root:0:${#drupal_root}-8}";
fi
if [[ "${drupal_root: -1}" == "/" ]]; then
drupal_root="${drupal_root::-1}";
drupal_root="${drupal_root:0:${#drupal_root}-1}";
fi
echo "Current path: $current_path";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment