Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
B
backspace
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Yahya YILDIRIM
backspace
Commits
73308d35
Unverified
Kaydet (Commit)
73308d35
authored
Nis 09, 2021
tarafından
Yahya YILDIRIM
Kaydeden (comit)
GitHub
Nis 09, 2021
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Update backspace.sh
üst
1a4b539c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
27 deletions
+11
-27
backspace.sh
backspace.sh
+11
-27
No files found.
backspace.sh
Dosyayı görüntüle @
73308d35
#!/bin/bash
# Install python-nautilus
if
[[
"
$(
whoami
)
"
!=
root
]]
;
then
exec sudo
--
"
$0
"
"
$@
"
fi
# python-nautilus indirilecek
echo
"---> python-nautilus dosyası depodan indirilerek kuruluyor..."
if
type
"pacman"
>
/dev/null 2>&1
then
sudo
pacman
-S
--noconfirm
python-nautilus
elif
type
"apt"
>
/dev/null 2>&1
sleep
3
if
type
"apt"
>
/dev/null 2>&1
then
installed
=
`
apt list
--installed
python-nautilus
-qq
2> /dev/null
`
if
[
-z
"
$installed
"
]
then
sudo
apt
install
-y
python-nautilus
apt
install
-y
python-nautilus
else
echo
"---> python-nautilus zaten kurulu."
fi
elif
type
"dnf"
>
/dev/null 2>&1
sleep
3
then
installed
=
`
dnf list
--installed
nautilus-python 2> /dev/null
`
if
[
-z
"
$installed
"
]
then
sudo
dnf
install
-y
nautilus-python
>
/dev/null 2>&1
else
echo
"---> nautilus-python zaten kurulu."
fi
else
echo
"---> python-nautilus dosyası bulunamadı, lütfen manuel olarak kurulum yapın."
fi
sleep
2
# Remove previous version and setup folder
# eski kurulum dosyaları silicencek
echo
"---> Önceki sürümler aranıyor ve kaldırılıyor..."
mkdir
-p
~/.local/share/nautilus-python/extensions
rm
-f
~/.local/share/nautilus-python/extensions/backspace-up.py
...
...
@@ -39,15 +28,12 @@ rm -f ~/.local/share/nautilus-python/extensions/BackspaceBack.py
sleep
2
#
Download and install the extension
#
python eklentisi indirilecek ve ilgili dizine kopyalanacak
echo
"---> Yeni sürüm indiriliyor ve kuruluyor..."
wget
--show-progress
-q
-nc
https://raw.githubusercontent.com/yahyayildirim/backspace/main/backspace-up.py
-O
~/.local/share/nautilus-python/extensions/backspace-up.py
>
/dev/null 2>&1
wget
--show-progress
-q
-nc
https://raw.githubusercontent.com/yahyayildirim/backspace/main/backspace-up.py
-O
~/.local/share/nautilus-python/extensions/backspace-up.py
chmod
+xr ~/.local/share/nautilus-python/extensions/backspace-up.py
sleep
1
# Kurulum tamamlandı
if
[
`
ps awx |
grep
nautilus |
grep
-v
grep
|
wc
-l
`
-eq
0
]
;
then
...
...
@@ -59,10 +45,9 @@ if [ `ps awx | grep nautilus | grep -v grep | wc -l` -eq 0 ]; then
exit
0
done
elif
[
`
ps awx |
grep
nautilus |
grep
-v
grep
|
wc
-l
`
==
1
]
;
then
#statements
killall nautilus
sleep
2
echo
'---> Kurulum tamamlandı. Çıkmak için bir tuşa basın.'
read
-s
-n1
exit
0
fi
\ No newline at end of file
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment