Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rocket.Chat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RocketChat
Rocket.Chat
Commits
557708a9
Unverified
Commit
557708a9
authored
2 years ago
by
Guilherme Gazzo
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Chore: Update fuselage.sh script
parent
c8af6454
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fuselage.sh
+60
-9
60 additions, 9 deletions
fuselage.sh
with
60 additions
and
9 deletions
fuselage.sh
+
60
−
9
View file @
557708a9
#!/bin/bash
if
[[
$1
!=
"undo"
]]
;
then
if
[[
$1
==
"--help"
||
$1
==
"-h"
]]
;
then
echo
"Usage: fuselage.sh -a link|undo -p fuselage;fuselage-icons"
exit
1
fi
while
getopts
":a:p:"
opt
;
do
case
$opt
in
a
)
action
=
"
$OPTARG
"
;;
p
)
packages
=
"
$OPTARG
"
;;
\?
)
echo
"Invalid option -
$OPTARG
"
>
&2
exit
1
;;
esac
case
$OPTARG
in
-
*
)
echo
"Option
$opt
needs a valid argument"
exit
1
;;
esac
done
echo
"action:
$action
"
action
=
"
${
action
:-
link
}
"
packages
=
"
${
packages
:-
fuselage
}
"
if
[[
$action
!=
"link"
&&
$action
!=
"undo"
]]
;
then
echo
"Invalid action"
exit
1
fi
if
[[
$action
!=
"undo"
]]
;
then
echo
"linking local project"
else
echo
"unlinking local project"
...
...
@@ -8,21 +41,39 @@ fi
cd
./node_modules/@rocket.chat
rm
-rf
fuselage
if
[[
$1
!=
"undo"
]]
;
then
ln
-s
../../../fuselage/packages/fuselage fuselage
fi
for
i
in
$(
echo
$packages
|
tr
";"
"
\n
"
)
do
rm
-rf
$i
if
[[
$action
!=
"undo"
]]
;
then
ln
-s
"../../../fuselage/packages/
$i
"
$i
echo
"root
$i
"
fi
done
cd
../..
cd
./apps/meteor/node_modules/@rocket.chat
rm
-rf
fuselage
if
[[
$1
!=
"undo"
]]
;
then
for
i
in
$(
echo
$packages
|
tr
";"
"
\n
"
)
do
rm
-rf
$i
if
[[
$action
!=
"undo"
]]
;
then
rm
-rf
$i
fi
done
if
[[
$action
!=
"undo"
]]
;
then
echo
"linking local project"
ln
-s
../../../../../fuselage/packages/fuselage fuselage
for
i
in
$(
echo
$packages
|
tr
";"
"
\n
"
)
do
ln
-s
"../../../../../fuselage/packages/
$i
"
$i
echo
"apps/meteor
$i
"
done
fi
cd
../../../../
if
[[
$
1
==
"undo"
]]
;
then
if
[[
$
action
==
"undo"
]]
;
then
yarn
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment