We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a4ceea commit 9eb5a38Copy full SHA for 9eb5a38
1 file changed
prism/etc/intellij/install.sh
@@ -12,14 +12,26 @@ for arg in "$@"; do
12
fi
13
done
14
15
+# Check for symlink flag
16
+SYMLINK=false
17
+for arg in "$@"; do
18
+ if [ "$arg" == "--symlink" ] || [ "$arg" == "-s" ]; then
19
+ SYMLINK=true
20
+ fi
21
+done
22
+
23
copy_file() {
24
local src="$1"
25
local dest="$2"
26
local display_path=${dest#"$PROJECT_ROOT/"}
27
if [ -f "$dest" ] && [ "$FORCE" = false ]; then
28
echo "⚠️ Skipping $display_path (already exists). Use -f to overwrite."
29
else
- cp "$src" "$dest" && echo "✅ Installed $display_path"
30
+ if [ "$SYMLINK" = false ]; then
31
+ cp "$src" "$dest" && echo "✅ Installed $display_path"
32
+ else
33
+ rm "$dest" && ln -s "$src" "$dest" && echo "✅ Installed $display_path (symlink)"
34
35
36
}
37
0 commit comments